- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Set Digital Output at +5V in HDC2450
Set Digital Output at +5V in HDC2450
- marcusbarnet
- Topic Author
- Offline
Less
More
- Posts: 69
- Thank you received: 0
10 years 7 months ago #29527759
by marcusbarnet
Set Digital Output at +5V in HDC2450 was created by marcusbarnet
I want to set at +5V digital output 6 (DOUT6) mapped on main connector as pin8 by using Linux API.
I\'ve read the API documentation, but I still have problems.
I\'m trying to do this with:
but it doesn\'t work.
Can you help me, please?
I do not know in my code I have to use the index number (6) or the label name (DOUT6) or the mapped pin8 (8).
In addition, I know that digital output are open drain, so if I want to power on a device which works at 5V, do I have to connect it between digital output 6 and VCC?
Thank you a lot!
EDIT: I\'ve better read the manual and I know that I have to put my load between digital output and gnd.
Moreover, I think I have to use device.SetCommand(DSET, 6) if I want to set HIGH digital output number 6 on pin8. Is it correct?
I\'ve read the API documentation, but I still have problems.
I\'m trying to do this with:
device.SetCommand(_DOUT, 6, 1)
but it doesn\'t work.
Can you help me, please?
I do not know in my code I have to use the index number (6) or the label name (DOUT6) or the mapped pin8 (8).
In addition, I know that digital output are open drain, so if I want to power on a device which works at 5V, do I have to connect it between digital output 6 and VCC?
Thank you a lot!
EDIT: I\'ve better read the manual and I know that I have to put my load between digital output and gnd.
Moreover, I think I have to use device.SetCommand(DSET, 6) if I want to set HIGH digital output number 6 on pin8. Is it correct?
Please Log in or Create an account to join the conversation.
- marcusbarnet
- Topic Author
- Offline
Less
More
- Posts: 69
- Thank you received: 0
10 years 7 months ago #29527775
by marcusbarnet
Replied by marcusbarnet on topic Re:Set Digital Output at +5V in HDC2450
I added an edit to my previous topic.
Please Log in or Create an account to join the conversation.
- marcusbarnet
- Topic Author
- Offline
Less
More
- Posts: 69
- Thank you received: 0
10 years 7 months ago #29527779
by marcusbarnet
Replied by marcusbarnet on topic Re:Set Digital Output at +5V in HDC2450
I solved the problem by using DSET to enable digital output! Everything is OK, now.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Set Digital Output at +5V in HDC2450
Time to create page: 0.063 seconds