| поискавой системы для электроныых деталей |
|
PIC17C752-08/CL датащи(PDF) 87 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC17C752-08/CL датащи(HTML) 87 Page - Microchip Technology |
|
87 / 328 page ![]() © 1998 Microchip Technology Inc. DS30289A-page 87 PIC17C7XX 10.8 PORTH and DDRH Registers (PIC17C76X only) PORTH is an 8-bit wide bi-directional port. The corre- sponding data direction register is DDRH. A '1' in DDRH configures the corresponding port pin as an input. A '0' in the DDRH register configures the corre- sponding port pin as an output. Reading PORTH reads the status of the pins, whereas writing to PORTH will write to the respective port latch. The upper four bits of PORTH are multiplexed with 4 channels of the 10-bit A/D converter. The remaining bits of PORTH are general purpose I/O. Upon reset RH7:RH4 is automatically configured as analog inputs, and must be configured in software to be a digital I/O. EXAMPLE 10-8: INITIALIZING PORTH MOVLB 8 ; Select Bank 8 MOVLW 0x0E ; Configure PORTH as MOVPF ADCON1 ; digital CLRF PORTH, F ; Initialize PORTH data ; latches before ; the data direction ; register MOVLW 0x03 ; Value used to init ; data direction MOVWF DDRH ; Set RH<1:0> as inputs ; RH<7:2> as outputs Figure 10-17: Block Diagram of RH7:RH4 Data bus WR PORTH WR DDRH RD PORT Data Latch DDRH Latch P VSS I/O pin PCFG3:PCFG0 To other pads Q D Q CK EN QD EN N ST input buffer VDD RD DDRH To other pads VAIN CHS3:CHS0 Q D Q CK Note: I/O pins have protection diodes to VDD and VSS. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |