| データシートサーチシステム |
|
HT95R65 データシート(PDF) 21 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT95R65 データシート(HTML) 21 Page - Holtek Semiconductor Inc |
|
21 / 82 page ![]() HT95R64/HT95R65 Rev. 1.00 21 March 3, 2010 W a k e - u p O p t i o n S y s t e m W a k e - u p R e a d D a t a R e g i s t e r C o n t r o l B i t P u l l - H i g h O p t i o n D a t a B u s W r i t e C o n t r o l R e g i s t e r C h i p R e s e t R e a d C o n t r o l R e g i s t e r W r i t e D a t a R e g i s t e r D a t a B i t P A 0 ~ P A 7 W e a k P u l l - u p D Q C K S Q D Q C K S Q V D D M U X PA Input/Output Port TMR0/1 pins Pin PC4 and PC6 are pin-shared with the external timer input pin TMR0 and TMR1 respectively. For these pin-shared pins to function as timer inputs, the corre- sponding control bits in the timer control register must be correctly set. For applications that do not require an ex- ternal timer input, the pin can be used as a normal I/O pin. Note that if used as a normal I/O pin the timer mode con- trol bits in the timer control register must select the timer mode, which has an internal clock source, to prevent the input pin from interfering with the timer operation. Programming Considerations Within the user program, one of the first things to con- sider is port initialization. After a reset, all of the I/O data and port control registers will be set high. This means that all I/O pins will default to an input state, the level of which depends on the other connected circuitry and whether pull-high options have been selected. If the port control registers, PAC, PCC, PDC, PEC and PFC, are then programmed to setup some pins as outputs, these output pins will have an initial high output value unless the associated port data registers, PA, PC, PD, PE and PF, are first programmed. Selecting which pins are in- puts and which are outputs can be achieved byte-wide by loading the correct values into the appropriate port control register or by programming individual bits in the port control register using the ²SET [m].i² and ²CLR [m].i ² instructions. Note that when using these bit control instructions, a read-modify-write operation takes place. The microcontroller must first read in the data on the en- tire port, modify it to the required new bit values and then rewrite this data back to the output ports. T 1 T 2 T 3 T 4 T 1 T 2 T 3 T 4 W r i t e t o P o r t R e a d f r o m P o r t S y s t e m C l o c k P o r t D a t a Read/Write Timing V D D M U X D Q C K S D Q C K S C o n t r o l B i t P u l l - H i g h O p t i o n D a t a B u s W r i t e C o n t r o l R e g i s t e r C h i p R e s e t R e a d C o n t r o l R e g i s t e r W r i t e D a t a R e g i s t e r D a t a B i t Q W e a k P u l l - u p Q P C 0 , P C 1 , P C 4 ~ P C 7 P D 0 ~ P D 7 P E 0 ~ P E 7 P F 0 ~ P F 7 R e a d D a t a R e g i s t e r M F I ( P C 0 ¯ , P C 5 ¯ , P C 7 o n l y ) PC (Except for PC2 and PC3), PD and PE Input/Output Ports |
|
リンク URL |
| ALLDATASHEETはお客様のビジネスに役立ちますか? [ DONATE ] |
Alldatasheetは | 広告 | お問い合わせ | プライバシーポリシー | データシートへのリンク | リンク交換 | メーカーリスト All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |