SSP_IF VAR PIR3.7 'I don't understand what it mean
THE SSP_IF VAR IS an alias to the SSP Interrupt Flag where PIR3.7 is the SSP2IF if you use ssp1 then use PIR1.3 for your chip
symbol tft_dc_bit = PORTB.5
symbol tft_cs_bit = PORTB.4
symbol tft_rst_bit = PORTB.7
you are asking for rmw trouble by using portb use latb instead
Code:
symbol tft_dc_bit = latb.5 >>with matching constant tft_dc_bit con 32 ie 2^5
symbol tft_cs_bit = latb.4 " " tft_cs_bit con 16 ie 2^4
symbol tft_rst_bit = latb.7 " " tft_rst_bit con 128 ie 2^7
tft_port var latb
SDi from display I connect to PORD.4 and SCK from display I connect to PORTD.0 on PIC processor
correct for a PIC18F45K22 PORTD.4 is SDO2 and connects to display sdi
and PORTD.0 is SCK2 and connects to display sck
Bookmarks