Two very simple examples for USART + I2C and USAT + SPI. Both developed for PIC18F97J60 microcontroller running at 25MHz with HS+PLL setup.
Download Files:
Two very simple examples for USART + I2C and USAT + SPI. Both developed for PIC18F97J60 microcontroller running at 25MHz with HS+PLL setup.
Download Files:
Stellaris is micro-controller series by TI. It was first introduced by LuminaryMicro, an independent company which was later acquired by TI. It was the first Cortex-M3 based MCU offering which caught-up the attention. Here is a brief tutorial to get started and creating the very first project in Keil uV4 and using StellarisWare library suite. Following is the step by step procedure. You can download the source code at the end of this post. In my case, am using EKK-LM3S8962 demo kit.
Step-1: Create new project

Step-2: Select the device

Step-3: Add startup code

Step-4: Add a file to source group

Step-5: Select the c source file this time

Step-6: Goto project options

Step-7: Check the crystal frequency from target tab

Step-8: Choose the debugger from debug tab

Step-9: Choose driver for flash programming from utilities tab

Step-10: Choose preprocessor for the part and include path from the c/c++ tab
I have created the new project in the same directory as the stellariware example code i.e, “C:\StellarisWare\boards\ek-lm3s8962″

Step-11: Linker settings

Step-12: Add some more files

Step-13: This time the library files

Step-14: Write the code in the *.c file

Download Files:
I had coded CCS PICC IDE for sometime. It’s good IDE and very powerful compiler. Only “drawback” is the money you need to pay for the said tools. Attached is simple serial port routine in PICC.
Download Files:
Very simple 4×3 Keypad scanning routine. You can adjust the delays according keypad de-bouncing effect. This routine was tested on PIC18F97J60 MCU and standard telephone receiver keypad.
Download Files: