| 전자부품 데이터시트 검색엔진 |
|
PIC17C752 데이터시트(PDF) 91 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC17C752 데이터시트(HTML) 91 Page - Microchip Technology |
|
91 / 304 page ![]() 2000 Microchip Technology Inc. DS30289B-page 91 PIC17C7XX 10.9 PORTJ and DDRJ Registers (PIC17C76X only) PORTJ is an 8-bit wide, bi-directional port. The corre- sponding data direction register is DDRJ. A ’1’ in DDRJ configures the corresponding port pin as an input. A ’0’ in the DDRJ register configures the corresponding port pin as an output. Reading PORTJ reads the status of the pins, whereas writing to PORTJ will write to the respective port latch. PORTJ is a general purpose I/O port. EXAMPLE 10-9: INITIALIZING PORTJ FIGURE 10-19: PORTJ BLOCK DIAGRAM MOVLB 8 ; Select Bank 8 CLRF PORTJ, F ; Initialize PORTJ data ; latches before setting ; the data direction ; register MOVLW 0xCF ; Value used to initialize ; data direction MOVWF DDRJ ; Set RJ<3:0> as inputs ; RJ<5:4> as outputs ; RJ<7:6> as inputs Note: I/O pins have protection diodes to VDD and VSS. D CK Q D CK Q Data Bus RD_PORTJ WR_PORTJ RD_DDRJ WR_DDRJ EN Q D EN P N Q VDD |
|
링크 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 |