Show Posts
Pages: 1 [2]
16  Using Arduino / Programming Questions / Using the timers on ATmega2560 on: February 27, 2013, 02:59:57 pm
So far very impressed with the ATmega2560 board, have got it talking to an intelligent touch screen LCD display and my laptop.
Also controlling heavy duty hydraulics system.
BUT what I need to do now is utilise the timers in the chip and the only Arduino drivers are PWM which is not what I want to.
I am guessing I can write to chip registers directly but think that some of the timer counters are probably being used by the system.
Is there somewhere I get info on what the system uses and whats left available to me.
Also would like more info on how the seial ports are controlled by Serial.write etc i.e. is the source code for these drivers available.
Thanks in advance
17  Using Arduino / Programming Questions / using I/O ports on ATmega2560 on: February 21, 2013, 07:36:27 am
Is there a way to access the I/O ports byte wise rather than bitwise using digitalRead or digitalWrite.

I want to be able to set an entire I/O port to either input or output and also to write and read bytes with a single instruction no have to cycle through digialReads for each pin.
eg PADR = 0xff to set all output high rather than have to iterate digitalWrites for each bit.

Thanks in advance
18  Using Arduino / Programming Questions / Re: Serial port settings on: February 20, 2013, 11:21:08 am
Thanks for that I guess I should have looked in the reference section ore carefully.

However I have checked through it looking for ways to write and read byte wide data to the ports and can't find anything there????
19  Using Arduino / Programming Questions / Serial port settings on: February 20, 2013, 09:11:17 am
How do I set the parity and data size size options on the seial ports. I am using a Mega 2560 board.
All I can see is how to set the baud rate.

Also can I set I/O ports in one go rather than on a bit at a time basis provided by the  pinMode digitalRead digitalWrite comand strings?

Thanks in advance
Pages: 1 [2]