Looking for a freelance that can write a small program for an ATXMEGA32A4U using the C language (Atmel Studio 7 + GCC Compiler [login to view URL]).
Program tasks:
a) configure pins:
========================
PB.3 = INPUT, internal pull-up ON
PC.0 = INPUT, internal pull-up OFF
PC.1 = OUTPUT, starts LOW
PC.2 = SERIAL PORT IN: 1,5Mbps, 8N1
PC.3 = INPUT, internal pull-up ON
PC.4 = OUTPUT, starts LOW
PC.5 = INPUT, internal pull-up ON
PC.6 = INPUT, internal pull-up ON
PC.7 = OUTPUT, starts LOW
Reference:
* Ports, Pins, Pull-up: [login to view URL]
* USART setup: [login to view URL]
b) set the clock source:
========================
verify if pin PB.3 is HIGH then
* configure the clock source as "Crystal" (8Mhz) and the PLL as 4x (resulting in 32Mhz to the CPU)
* configure PC.4 as clock output (8Mhz)
if PB.3 is LOW then
* configure the clock source as "External clock, on XTAL 1 pin" (8Mhz) and the PLL as 4x (resulting in 32Mhz to the CPU)
Reference:
* AVR XMEGA Clock: [login to view URL]
* Clock output: [login to view URL] Page 55, PORT C Alternate functions
c) main task (in looping):
==========================
c.1) Configure the DMA to store each byte received on a buffer, the buffer size must be 3072 bytes and start the DMA channel;
c.2) Wait until PC.0 goes HIGH; (a simple WHILE here);
c.3) Set PC.1 as LOW;
c.4) Wait 20ms;
c.5) Set PC.1 as HIGH;
c.6) Goto "c.1".
Reference:
* XMEGA DMA: [login to view URL]
Hi,
Again feel good to see project with Atmel Controller.
Actually i had worked with Atxmega256a3u controller. And i had very good knowledge of Atmel chips.
And main thing is i had also available equipment like JTAG Debugger which can be use with his chip. But problem is with hardware of the controller which you mentioned.
Are you going to use development kit from Atmel Corporation or you had developed your own PCB?
Based on your description i cn understand like you want to send pulse of 20ms based on timer. But what is use of DMA UART in this application. Can you elaborate it, so i can clear my mind.
By the way, it can be developed within 3 days but i can also lock the code by lock byte and fuse byte so no one can hack your device.
And for this i will need your hardware, I mean development kit so it can be done within your requirement days.
Let me know your thoughts.
Thanks,
Kalpesh Ramani.