PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Sep 27, 2007 1:01 pm |
|
|
I don't have one of those PICs to test, but the following program
may work. Look for a square-wave output signal on pin 3.
Code: |
#include <12HV615.H>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOMCLR
#use delay(clock = 8000000)
//======================================
void main()
{
setup_ccp1(CCP_PWM);
setup_timer_2(T2_DIV_BY_1, 255, 1);
set_pwm1_duty(128);
while(1); // Prevent PIC from going to sleep.
} |
|
|