Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
you could write a simple software uart routine, for TX data transmission.
Or move the E & RS pins off PORTB and onto RA6,7
I'm sure it's not important but the internal osc is only 1% at room temperature. Cars get much hotter/colder than that.
Start:
clrf PORTA
clrf PORTB
bsf STATUS,RP0 ; bank 1
ifdef __16F88
movlw B'10101111' ; PortA directions (16F88) ;previously 11101111
movwf TRISA
movlw B'11000001' ; PortB directions (16F88)
movwf TRISB
movlw B'01100000' ; 4MHz internal osc (16F88)
movwf OSCCON
#DEFINE PGBTN PORTB,6 ; page button (S3)
#DEFINE HDBTN PORTB,7 ; hold button (S2)
#DEFINE BLDBTN PORTA,7 ; blades button (S1)
#DEFINE RPM_IN PORTB,0 ; rpm input
#DEFINE LCD_D7 PORTA,4 ; \
#DEFINE LCD_D6 PORTB,1 ; |
#DEFINE LCD_D5 PORTB,2 ; | LCD panel
#DEFINE LCD_D4 PORTB,3 ; |
#DEFINE LCD_E PORTB,4 ; |
#DEFINE LCD_RS PORTA,6 ; /