PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 28, 2007 5:52 pm |
|
|
I tested this on a PicDem2-Plus with a 12 MHz crystal, with PCH vs. 4.053
and it puts out a 1 KHz squarewave on Pin B0.
Code: | #include <18F4550.h>
#fuses HSPLL, PLL3, CPUDIV1, NOWDT, PUT, BROWNOUT, NOLVP
#use delay(clock=48000000)
//====================================
void main()
{
while(1)
{
output_high(PIN_B0);
delay_us(500);
output_low(PIN_B0);
delay_us(500);
}
} |
|
|