Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Michael Karas
03/16/17 06:05
  03/16/17 06:07

Read: 621 times
Beaverton Or

#190763 - Short Pulse
Responding to: Balasubramanian Vaidhyana's previous message
It is next to impossible to help you debug your code with respect to the use of the address 0xFF9E as I have no direct reference or experience with your platform. But if we assume for now that the code you show for setting and clearing a bit at that address is working then you need to be aware of something.

As written your code will put out a very short high level on that pin relative to the long low level time as determined by the delay loop. If you have an oscilloscope you would be able to see the narrow high pulse if you triggered on it and zoomed in the scan speed to capture it. On a zoomed out scope capture rate you may very well miss the narrow pulse.

On the other hand if you were expecting to see something more like a 50% duty cycle square wave on the pin then you would need to put two delay loops in the program; one after you set the bit and another after you clear the bit.

Michael Karas

List of 7 messages in thread
GPIO pin toggle on TUSB3410      Balasubramanian Vaidhyana      03/13/17 08:57      
   Short Pulse      Michael Karas      03/16/17 06:05      
      GPIO working      Balasubramanian Vaidhyana      03/16/17 11:28      
         Was it?      Michael Karas      03/18/17 12:47      
            GPIO toggle      Balasubramanian Vaidhyana      03/20/17 07:00      
               Good to hear      Michael Karas      03/25/17 19:40      
                  two problems      Maarten Brock      04/13/17 11:59      

Back to Subject List