dn_cec_ccs_c_compiler_day1.ppt

22
Presented by: Embedded Development Using Microchip Microcontrollers and the CCS C Compiler February 9, 2015 Fred Eady Little Microcontrollers Doing Big Things with C

Upload: ademar-gregoruti-junior

Post on 06-Feb-2016

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 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

Page 2: DN_CEC_CCS_C_Compiler_Day1.ppt

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

Page 3: DN_CEC_CCS_C_Compiler_Day1.ppt

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

Page 4: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

4

Pre-Processors

#FUSES #use delay #use rs232 #use spi

Page 5: DN_CEC_CCS_C_Compiler_Day1.ppt

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()

Page 6: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

6

Peripheral Drivers

Page 7: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

7

CCS Device Libraries

Page 8: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

8

Example Programs

Page 9: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

9

C-Aware IDE

Page 10: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

10

PIC16F1709 – Zero-Cross Detector

Page 11: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

11

PIC16F1709 – Zero-Cross Detector

Page 12: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

12

PIC16F1709 – Zero-Cross Detector

Page 13: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

13

PIC16F1829 – Utility Configuration

Page 14: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

14

PIC16F1829 – Utility Configuration

Page 15: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

15

PIC16F1829 – Utility Configuration

Page 16: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

16

PIC16F1829 – Utility Configuration

Page 17: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

17

PIC16F1459 – Wireless Comm Configuration

Page 18: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

18

PIC16F1459 – Wireless Comm Configuration

Page 19: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

19

PIC16F1459 – Wireless Comm Configuration

Page 20: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

20

PIC16F1459 – Wireless Comm Configuration

Page 21: DN_CEC_CCS_C_Compiler_Day1.ppt

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C Compiler

21

PIC16F1459 – Wireless Comm Configuration

Page 22: DN_CEC_CCS_C_Compiler_Day1.ppt

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