a little spike here,may be ?
PORTD=200
PAUSEUS 1
PORTD=225
PAUSEUS 1
PORTD=255 ... should not be 250 ???
PAUSEUS 1
PORTD=225
PAUSEUS 1
PORTD=200
did you try :
Code:
Init_Triangluar: TRISD=$00 'PortD an Output Port
PORTD=0 'Triangle-Wave at PortD
'Starting with Decimal 0 out of 255
'of the Maximum Output Voltage.
PAUSEUS1 'instead of PAUSE 1
'10 micro-seconds, in
PS : didn't notice the 40Mhz Define ... sorry !
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks