A variable declared as int, whose value is incremented with some value after every 1 milli second.
I want to send this value to port C whenever increment happens. How to achieve this
A variable declared as int, whose value is incremented with some value after every 1 milli second.
I want to send this value to port C whenever increment happens. How to achieve this
That will be tough seeing as how ports are 8 bits wide.
Not sure what you mean.
An int is 16 bits long and a port is only 8 bits so basically you can’t.
If you just want to transfer 8 bits to a port then
PORTC = variable;
Should do it.
See Arduino Reference - Arduino Reference
Note in an Arduino Uno port C only has 6 outputs you can use.
Uno Rev3 has no ports with > 6 bits open if you count RX and TX as taken.
A 328P running on internal clock gets all 8 bits of Port B open.
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
What is the application?
Thanks.. Tom...