SetPin GPnn, DOUT [DIN] setup time query


Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6546
Posted: 06:52am 06 Sep 2023      

 '
 PIN(GP13) = 0
 DO
   SETPIN GP13,DOUT
   SETPIN GP13,DIN
   PAUSE 1
 LOOP

This code gives a 20-30uS low pulse every 1mS on a pico running at 250MHz
It needs an external pullup.

I haven't had any reboots on my server since Peter made changes which included the HW watchdog.
Before that I would monitor the RTC and if it had stopped, do a reboot.
This worked because the timer that had a habit of stopping drove the RTC as well as SETTICK and the watchdog.

Jim