
ML62Q1000 Series User's Manual
Chapter 17 General Purpose Port
FEUL62Q1000
17-33
17.3.6 Port Output Level Test
The level specified in the PnDO register can be read from the PnDI register by setting the PnmOE bit of the PnMODm
register to "1" and the PnmIE bit to "1".
Use of this function allows confirmation that the level set in the PnDO register is being normally output to the port.
n: Port number 0 to 9, A, B
m: Bit number 0 to 7
17.3.7 Port Setting Example
Figure 17-6 shows an example for setting port registers to output 0x55 to a port.
Enable the output by setting the port n mode register after setting a data by the port n data register to prevent to output
unexpected level.
Figure 17-6 Setting example to output data to port 0
Set the P07-P00 to the primary function, CMOS output,
Output enabled.
P0MOD01 = 0x0202
P0MOD23 = 0x0202
P0MOD45 = 0x0202
P0MOD67 = 0x0202
Set output data of P07-P00.
P0DO = 0x55
Start
Port mode setting
Output data setting
End
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...