ab.vasanthan
Newbie level 5
HI everyone,
I am using PIC 16F887 and CCS-C compiler(version 4.093) plugin in MPLAB IDE ... i ve connected LCD to port D and it is working , i am using LCD.C driver to implement lcd functions in which LCD is configured as port access.now i want to use pin 5 of port d for PWM(half bridge mode) which is already being used as LCD data pin.how do i change LCD data pin ?what changes should i make in LCD.C ? in order to use pin d5 for PWM or to configure LCD using pin access. i am not using pin d3 . if i could use pin d3 for lcd data , i can use pin d5 for pwm ? how to do this ? i ve attached proteus schematic and LCD driver file.
hardware connection details
port D
pin d0 connected to LCD enable
pin d1 connected to LCD RS
pin d2 connected to LCD R/W
pin d3 NOT USED
pin d4 connected to LCD data pin 4
pin d5 connected to LCD data pin 5
pin d6 connected to LCD data pin 6
pin d7 connected to LCD data pin 7
View attachment lcd.txt
I am using PIC 16F887 and CCS-C compiler(version 4.093) plugin in MPLAB IDE ... i ve connected LCD to port D and it is working , i am using LCD.C driver to implement lcd functions in which LCD is configured as port access.now i want to use pin 5 of port d for PWM(half bridge mode) which is already being used as LCD data pin.how do i change LCD data pin ?what changes should i make in LCD.C ? in order to use pin d5 for PWM or to configure LCD using pin access. i am not using pin d3 . if i could use pin d3 for lcd data , i can use pin d5 for pwm ? how to do this ? i ve attached proteus schematic and LCD driver file.
hardware connection details
port D
pin d0 connected to LCD enable
pin d1 connected to LCD RS
pin d2 connected to LCD R/W
pin d3 NOT USED
pin d4 connected to LCD data pin 4
pin d5 connected to LCD data pin 5
pin d6 connected to LCD data pin 6
pin d7 connected to LCD data pin 7
View attachment lcd.txt