Author Topic: simple Digital output question (Axon)  (Read 2199 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
    • RazorConcepts
Re: simple Digital output question (Axon)
« Reply #1 on: April 10, 2009, 03:28:12 PM »
Yes you can do that  ;D

 


Get Your Ad Here