Author Topic: simple Digital output question (Axon)  (Read 955 times)

0 Members and 1 Guest are viewing this topic.

Offline Its_FridayTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Helpful? 0
simple Digital output question (Axon)
« on: April 10, 2009, 03:18:29 PM »
I've built my H-Bridge for 2 motors and all there is to do is to write a program to make them turn clockwise and counter clock wise. I just need to use 4 ports and switch them off and on.

Using the axon microcontroller, how to i turn ports off and on? For example, say i need port H3 to send 12 volts to a motor, and then when a condition is met, the port drops the voltage to 0.

Could i use....:

PORT_ON(PORTH,3);

if (something happens)
{
PORT_OFF(PORTH,3);
}

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: simple Digital output question (Axon)
« Reply #1 on: April 10, 2009, 03:28:12 PM »
Yes you can do that  ;D

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1789 Views
Last post May 22, 2009, 10:42:24 PM
by billhowl
5 Replies
858 Views
Last post December 28, 2009, 05:20:08 PM
by SmAsH
1 Replies
650 Views
Last post March 09, 2010, 11:41:41 PM
by SmAsH
1 Replies
1083 Views
Last post November 14, 2010, 11:16:26 AM
by Soeren


Get Your Ad Here

data_list