Hi, look at the assembly listing and/or the pulsout routine. Obviously u get a WDT restart which is very well possible at 100 msec delay. Or you may experiment instead of 100 say with 8 to check whether I'm right. Regards, Imre +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Thu, 20 Jun 2002, Sid Weaver wrote: > OK, experts. I need held. B_A_A_A_D > > Here is my code for driving a 595 shift register, at the present time uss an > F877 in Flash Lab. > > > serout2 so, 84, ["Starting", 10, 13] > low PortB.1 > serout2 so, 84, ["Low latch", 10, 13] > shiftout PortB.2, PortB.0, msbfirst, [%10101010] > serout2 so, 84, ["Shiftout", 10, 13] > pulsout PortB.1, 100 > serout2 so, 84, ["Pulsout", 10, 13] > low PortB.1 > serout2 so, 84, ["Receiving Plan", 10, 13] > > The debug screen displays > > Starting > Low latch > Shiftout > > but never gets to the "Pulsout", It just goes back to Starting. It's like > it doesn't like "pulsout PortB.1, 100" and just ignores it and restarts. > > Why ? > > Sid > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads