I need a sample program that does configure digital outputs, digital and analog input, timer, interrupts, and serial ports for the FreeScale MCF52235. I use CodeWarrior Special Edition v6.4 and the M52235EVB evaluation board. Coding has to be started from the default ColdFire CF_M52235EVB Project Stationery (C or C++). They are included here. Only one has to be used. The code must: Be written in C or C++, Be commented properly, Compile and debug using CodeWarrior for ColdFire Special Edition v6.4, and Run on the M52235EVB.
## Deliverables
Initialize 8 pins as digital output. At least 4 of them should be on the same port. Initialize 4 pins as digital input on a single port. Have one interrupt on the switches connected to IRQ 4, IRQ11, and IRQ1. Switches 1, 2 and 3 should respectively toggle the leds 1, 2, and 3. One timer output capture function executed at an interval determined by one of the ADC readings. Read the 8 analog ports at a regular interval (4ms maximum) Reading must be configured at the maximum resolution (10 bits), unsigned, and left aligned. Indicate clearly where to enable/disable the amplifier bypass. I have to know at what time the value have been read. Open the 3 SCI ports for input with interrupt on 3 distinct functions to receive each byte. When a byte is received, this one should be sent to the 2 other SCI ports (e.g. bytes received on SCI0 are sent to SCI1 and SCI2) using one function per port. I will test it using HyperTerminal, one char at the time only. No buffer is required. Functions that send bytes should be called from the receive interrupt, despite possible effect on other interrupts timing. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
The code must: Be written in C or C++, Be commented properly, Compile and debug using CodeWarrior for ColdFire Special Edition v6.4, and Run on the M52235EVB.