Hi everybody,
Anybody can point me to a right direction with some sample code regarding how to generate a PWM signal? Actually i was trying to generate a 38kHz PWM signal as the carrier for my UART IR transmission, then when i need to transmit data i will make the 38KHz PWM signal ON/OFF to drive an infrared LED and communicate with the IR receiver.
I was using CCS C compiler(just start learn up assembly) and PIC16F877A, and i haved read through the PWM section of the data sheet but just not so understand about how to set the register.
Anybody can help?
Thanks.
Anybody can point me to a right direction with some sample code regarding how to generate a PWM signal? Actually i was trying to generate a 38kHz PWM signal as the carrier for my UART IR transmission, then when i need to transmit data i will make the 38KHz PWM signal ON/OFF to drive an infrared LED and communicate with the IR receiver.
I was using CCS C compiler(just start learn up assembly) and PIC16F877A, and i haved read through the PWM section of the data sheet but just not so understand about how to set the register.
Anybody can help?
Thanks.