PIC18, MPLAB X IDE, XC8, SPI, LCD22
spi mode
- RC3 : CLK
- RC4 : SDI
- RC5 : SDO
- FOSC/4
lcd conf
- RA1 : CS
- RA2 : RS
- RD0 : Reset
touch conf
- RA4 : CS
0. 참고 사항
- https://www.waveshare.com/wiki/Open18F4520
- [ ] https://www.microchip.com/wwwproducts/en/PIC18F4520
- [ datasheet ] http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf
1. HW 연결
2. 소스 설명
full 소스는 아래 github를 통해 확인하세요.
3. 소스
4. 결과
'PIC18' 카테고리의 다른 글
PIC18, MPLAB X IDE, XC8, SPI, FATFS, petit_fatfs (0) | 2018.09.18 |
---|---|
PIC18, MPLAB X IDE, XC8, LCD1602, 8bit mode (0) | 2018.09.17 |
PIC18, MPLAB X IDE, XC8, CCP1, infrared (IR) (0) | 2018.09.16 |
PIC18, MPLAB X IDE, XC8, ADC, rotation_sensor (0) | 2018.09.14 |
PIC18, MPLAB X IDE, XC8, SPI, at45dbxx data flash (0) | 2018.09.13 |