Go Down

Topic: NEED HELP NEW BIE (Read 255 times) previous topic - next topic

paulelder

I NEED TO RIGHT A SMALL PROGRAM TO RUN A FREQUENCY UP AND DOWN THRU SERIAL PORT CAN SOME ONE WRIGHT A SMALL PROGRAM TO LOAD AND RUN AND REPET IT UNTILL I STOP IT
HERE IS THE CODE FOR THE UNIT


Communication standard: 9600 bps data bits: 8
Stop bit :1
Check digit :none
Flow control : none

1, set the frequency of the PWM

"F101": Set the frequency to 101 HZ (001~999)

"F1.05": Set the frequency to 1.05 KHZ (1.00~9.99)

"F10.5": Set the frequency to 10.5KHZ (10.0~99.9)

"F1.0.5": Set the frequency to 105KHZ (1.0.0~1.5.0)

2, set the duty cycle of the PWM

"Dx:yyy": set the duty cycle of PWM x: (1~3) PWM serial number, yyy: (000~100) duty cycle %;

For example, D1:050, set the first PWM duty cycle to 50%.

3, read the setting parameters

Send a "read" string and read the set parameters.

The read data format is as follows: F156, D1: 052, D2: 059, D3: 058,

Set the success to return: DOWN;

Setting failed to return: FALL.


Your previous message
hello I thank you for the units but I need a manual for this unit so I can talk to it can you send me a link to down load manual please



Adjustable LCD Signal Generator PWM Pulse Wave Frequency Duty Cycle 3 WAYS

UKHeliBob

If you want someone to write the code for you (it may cost) then this post should really be in the Gigs and Collaborations section of the forum.

If you want it moved then click on Report to moderator and ask them to do it
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

pert


GaryP

Hello Paul, just wait for a moment, I'm sure Paul's group will help you. Just keep your coffee maker warn, you  will get you code.

Not really, just kidding, my turn. You won't get any code before you show what you have tried by yourself.

And use lower letters, just trying to help you to learn the "Proper Internet Etiquette".

Cheers,
Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Go Up