Re: Pulsout Pic16F630 @16Mhz problem
The pulses delivered are 240msec for a command "PULSOUT PORTC.3, 100"!?
by 240mS do you mean 240 micro seconds. a more likely result
What is my mistake or oversight?
not reading the manual
5.59 PULSOUT
PULSOUT Pin, Period
Generates a pulse on Pin of specified Period. The pulse is generated by toggling the pin twice, thus the initial state of the pin determines the polarity of the pulse. Pin is automatically made an output. Pin may be a constant, 0 - 15, or a variable that contains a number 0 - 15 (e.g. B0) or a pin name (e.g. PORTA.0).
The resolution of PULSOUT is dependent upon the oscillator frequency. If a 4MHz oscillator is used, the Period of the generated pulse will be in 10us increments. If a 20MHz oscillator is used, Period will have a 2us resolution.
Defining an OSC value has no effect on PULSOUT. The resolution always changes with the actual oscillator speed.
' Send a pulse 1mSec long (at 4MHz) to Pin5
PULSOUT PORTB.5,100
PULSOUT is a legacy command that is included for compatibility with other languages.
Warning I'm not a teacher
Bookmarks