********************************************************************* ; HARDW. PIC16F1936 ; INTOSC fosc=8MHz ; Program Memory Words Used: 1295 ; Program Memory Words Free: 6897 ; ; FILES: 16F1936_RoboCar2023.ASM ; MPASM PIC16F1936.INC ; 02_HEADER_RoboCar2023.INC ; 03_INIT_Robo2023.INC ; 04_DRIVE_Robo2023.INC ; 05_US_Robo2023.INC ; 07_LCD_Robo2023.INC ; HD44780_2Wire.INC ; ; HD44780-LCD4x16 2Wire ; HC-05 Bluetooth transmitting and receiving module ; HC-SR04 Ultrasonic module ; 2 Infrared distance sensing module ; L298 Dual H-Bridge Dual Motor-Driver ; Frontlight 2xLED white 20.000mcd ; Backlight 2xLED red 4.000mcd ; Button (MCLRE Reset) ; ; PORTA L298_PORT Drive L/R, Extra functions ; RA7:6 n.c ; RA5(07) BACKL Backlights on(off ; RA4(06) FRONTL Frontlights on/off ; RA3(05) EN4 L298 2 motors right ; RA2(04) EN3 " ; RA1(03) EN2 L298 2 motors left ; RA0(02) EN1 " ; PORTB LCD_PORT init, basic functions 2-Wire LCD ; AD_PORT measure Vdd drive batterie ; RB7(28) LCD_TRIS, LCDDAT LCD_Data ICSPDAT Output ; RB6(27) LCD_TRIS, LCDCLK LCD_Clock ICSPCLK " ; RB5(25) n.c. ; RB4(24 AD_DRV ;AN11 analog DriveBatt 4x3.2V ; RB3:0 n.c. ; PORTC SCI_PORT Serial Communications Interface (SCI) ; US_PORT US-Module ; PWM_PORT Forward/backward Duty Cycle ; RC7(18) RX_DT SCI Input recieve from HC-05 ; RC6(17) TX_CK SCI Output send to HC-05 ; RC5(16) US_TRIG HC-SR04 output triggers US-Burst ; RC4(15) US__ECHO HC-SR04 see "INIT_HC_SR04" below! ; RC3(14) US_IRL input IR-Sensor links (low-active) ; RC2(14) PWM_CCP1 PWM_PORT Output drive left ; RC1(12) PWM_CCP2 " Output drive right ; RC0(11) US_IRR input IR-Sensor rechts " ; ;*********************************************************************