Download - DN_CEC_CCS_C_Compiler_Day1.ppt
Presented by:
Embedded Development Using Microchip
Microcontrollers and the CCS C Compiler
February 9, 2015Fred Eady
Little Microcontrollers Doing Big Things with C
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
2
AGENDA
CCS C Compiler Components PIC16F1709 – Zero-Cross Detector Configuration PIC16F1829 – Utility Configuration PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
3
CCS C Compiler Components
Pro-Level Optimization Pre-Processors Built-in Functions Peripheral Drivers CCS Device Libraries Example Programs C-Aware IDE
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
4
Pre-Processors
#FUSES #use delay #use rs232 #use spi
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
5
Built-in Functions
delay_cycles() delay_ms() delay_us()
output_low() output_high()
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
6
Peripheral Drivers
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
7
CCS Device Libraries
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
8
Example Programs
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
9
C-Aware IDE
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
10
PIC16F1709 – Zero-Cross Detector
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
11
PIC16F1709 – Zero-Cross Detector
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
12
PIC16F1709 – Zero-Cross Detector
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
13
PIC16F1829 – Utility Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
14
PIC16F1829 – Utility Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
15
PIC16F1829 – Utility Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
16
PIC16F1829 – Utility Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
17
PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
18
PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
19
PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
20
PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
21
PIC16F1459 – Wireless Comm Configuration
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
22
Day 1 Wrap
You experienced using the CCS C Compiler
You can safely sense Zero-Cross events
The PIC16F1829 is your friend You had a taste of the PIC16F1459