Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:34 03 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : sq wave gen prog need help

Author Message
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 01:58pm 15 Jun 2011
Copy link to clipboard 
Print this post

ok if any body can help here..need either a small program to set one of the digital pins on and of as well as being to adust on time and off time..i`m guessing i need to use one of the digital pins on the headder i ;;;;;
or even steer me in the right direction "i am not really fimiliur with the hows and why`s of what the program lines are /or strings /and so on but once i know what i am looking at i will decipher from the mm..manual.....

thanks to all who reply regards sparkey
technicians do it with least resistance
 
thetinkerer

Regular Member

Joined: 16/06/2011
Location: Australia
Posts: 68
Posted: 07:51pm 15 Jun 2011
Copy link to clipboard 
Print this post

Hello Sparky,
you will need to
- configure a pin for output - SETPIN command
- set the pin high - PIN Command
- have a "on" delay
- set the pin low
- have another delay ("off" delay)

you could perhaps use the Setick to create a timed interrupt(equal on/off time)

May I suggest you sit down and read the manual from cover to cover so that you can familiarise yourself with all the commands.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 08:12pm 15 Jun 2011
Copy link to clipboard 
Print this post

thank you regards sparkey i am no programmer expert but thanks for at least showing me a direction..and yes i will read the manual but its like if you dont have a start point then reading becomes teadious and might not be absorbed...
technicians do it with least resistance
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025