IBM EM78M611E manual 2.5 R4 RAM Select Register Default Value 0B00XXXXXX

Page 17

EM78M611E

Universal Serial Bus Series Microcontroller

8.2.2.5R4 (RAM Select Register) Default Value: (0B_00XX_XXXX)

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

BK1

 

BK0

 

Ad5

 

Ad4

 

Ad3

 

Ad2

 

Ad1

 

Ad0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R4 (RAM select register) contains the address of the registers.

R4 [0~5] used to select registers in 0x00h~0x3Fh. The address 0x00~0x1F is common space. After 0x1Fh, SRAM is divided into four banks, using Bank Select Register.

R4 [6, 7] used to select the registers bank (refer to the table below). The following are two examples:

(1)R4=00001100 and R4=10001100 point to the same register 0x0Ch. Since 0x0Ch is in the common space, Bit 6 and Bit 7 are meaningless.

(2)R4=10111100 points to the register 0x3C in Bank 2.

R4[7]Bk1

R4[6]Bk0

RAM Bank #

 

 

 

0

0

1

1

0

1

0

1

Bank 0

Bank 1

Bank 2

Bank 3

8.2.2.6

R5 (Port 5 I/O Register)

Default Value: (0B_0000_0000)

 

 

 

 

 

 

 

 

 

 

 

Bit 7

 

Bit 6

Bit 5

 

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

 

 

 

 

 

 

 

 

P57

 

P56

P55

 

P54

P53

P52

P51

P50

 

 

 

 

 

 

 

 

 

 

8.2.2.7

R6 (Port 6 I/O Register)

Default Value: (0B_0000_0000)

 

 

 

 

 

 

 

 

 

 

 

Bit 7

 

Bit 6

Bit 5

 

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

 

 

 

 

 

 

 

 

P67

P66

P65

P64

P63

P62

P61

P60

8.2.2.8

 

 

R7

(Port 7 I/O Register)

Default Value: (0B_0000_X000)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit 7

 

 

Bit 6

 

 

 

 

Bit 5

 

 

 

Bit 4

 

 

Bit 3

 

 

Bit 2

 

 

Bit 1

 

 

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P77

 

 

P76

 

 

 

D- / P75 / DATA

 

 

D+ / P74 / CLK

 

 

 

 

 

P72

 

 

P71

 

 

P70

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8.2.2.9

 

 

R8

(Port 8 I/O Register)

Default Value: (0B_0000_0000)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit 7

 

 

 

 

Bit 6

 

Bit 5

 

 

Bit 4

 

 

Bit 3

 

 

 

Bit 2

 

 

Bit 1

 

 

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P87

 

 

 

 

P86

 

P85

 

 

P84

 

 

P83

 

 

 

P82

 

 

P81

 

 

P80

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8.2.2.10

R9

(Port 9 I/O Register) Default Value: (0B_X00X_0000)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit 7

 

 

 

 

Bit 6

 

Bit 5

 

 

Bit 4

 

 

Bit 3

 

 

 

Bit 2

 

 

Bit 1

 

 

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P96

 

P95

 

 

 

 

P93

 

 

 

P92

 

 

P91

 

 

P90

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Product Specification (V1.11) 04.20.2007

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

(This specification is subject to change without further notice)

Image 17
Contents EM78M611E Trademark Acknowledgments 2.1 Appendix Product Specification V1.1Universal Serial Bus Series Microcontroller FeaturesGeneral Description Product Specification V1.1 Original With Both Type DefinitionApplication VNN Pin AssignmentEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Pin Description Symbol FunctionALU ACC Data & Control BUS Block DiagramProgram Memory Function DescriptionSpecial Purpose Register Data MemoryOperation Registers 2.2 R1 Timer / Clock Counter Default Value 0B000000002.3 R2 Program Counter & Stack Default Value 0B00000000 Bit 2.4 R3 Status Register Default Value0B00011XXXR3 0 Carry/Borrow Flag Program Memory Page Address Condition2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall RF Interrupt Status Register Default Value 0B00000000Accumulator Control RegistersTCC Rate WDT Rate Control Register Default Value 0B00111111PS/2 Operation ModePH95 PH93 DualFrq.1 DualFrq.0 FrequencyBit P96 P95 P94 P93 P92 P91 P90 PU8 PU6 PU5 USB Application FIFOs Extra Control RegisterUSB Device Controller USB ApplicationSaving Power Mode ResetInterrupt Dual Clock ModeFunction Description Pattern Detect Application PDASampling Rate and Debounce Length Control RegisterSR.2 SR.1 SR.0 Sampling Rate DB.2 DB.1 DB.0 Debounce TimePulse Width Modulation PWM Erepwm Control Register Default Value 0B00000001Duty Cycle R10 PWM1 Duty Cycle RegisterClock Hz Period/255 s ERA AD Channel Select Register Default Value 0B00011111Analog-To-Digital Converter ADC Channel Port ERB AD LSB Data Register Default Value 0B00000000Command Value Action Execution Time ERC AD MSB Data Register Default Value 0B00000000ERD AD Control Register Default Value 0B00000000 Symbol Min Max Unit DC Electrical CharacteristicSymbol Parameter Condition Min Type Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Operation Registers Address Name Bit Bit1 Default ValueSpecial Register Map Extra Register IOCA3 = Address Name Bit Default ValueBinary Instruction Hex Mnemonic Operation Status Affected Instruction SetThis instruction is not recommended for RE, RF operation 11 16ms Bits 4~12 User ID Address Code Option RegisterAddress EM78M611E