PIC vs. HCS12 - PowerPoint PPT Presentation

Loading...

PPT – PIC vs. HCS12 PowerPoint presentation | free to view - id: 26a053-MDFkY



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

PIC vs. HCS12

Description:

Brand new option for ECE445. PIC16 vs. HCS12- On Chip Memory ... Down (toward Gnd jack) is for program to run after reset. HCS12 Prototyping Board. Power Jacks ... – PowerPoint PPT presentation

Number of Views:249
Avg rating:3.0/5.0
Slides: 23
Provided by: BillEis9
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: PIC vs. HCS12


1
PIC vs. HCS12
  • By Bill Eisenhower

2
MicroChip PIC16
  • Small, Cheap, 8-bit Microcontroller
  • 8-bit RISC ALU
  • Timers
  • 10-bit A/D
  • Serial Parallel Ports
  • 28 or 40 DIP packaging
  • Popular with ECE445 students for ease of use

3
Freescale HCS12
  • Full Featured 16-bit Microcontroller
  • 16-bit CISC ALU
  • All features of PIC and more
  • Has more of all features
  • More Expensive 15-20 each
  • Much more memory 256KB flash, 12KB SRAM
  • 80 or 112 pin QFP packaging
  • Brand new option for ECE445

4
PIC16 vs. HCS12- On Chip Memory
  • PIC
  • 8K instructions
  • 368 bytes of RAM
  • 256 bytes of EEPROM
  • HCS12
  • 256KB Flash
  • Instructions of various sizes
  • 12KB of RAM
  • 4KB of EEPROM

5
PIC16 vs. HCS12- Analog to Digital
  • PIC
  • 8 channels
  • 10-bit resolution
  • Poll-able or Interrupt driven results
  • Only Holds 1 result
  • HCS12
  • 16 channels
  • 10-bit resolution
  • Poll-able or Interrupt driven results
  • Holds 16 results

6
PIC16 vs. HCS12- Peripherals
  • PIC
  • 3 Timers
  • 2 8-bit
  • 1 16-bit
  • 2 PWM/Comparison
  • 1 SPI/IIC Serial Port
  • 1 UART Serial Port
  • 1 Slave Serial Port
  • HCS12
  • 8 Timer/Comparison
  • 16-bit
  • Pulse Accumulator
  • 8 PWM
  • 8 8-bit or 4 16-bit
  • 3 SPI Serial Ports
  • 1 IIC Serial Port
  • 2 UART Serial Port
  • 2 CAN Ports

7
PIC16 vs. HCS12- I/O and Speed
  • PIC
  • Up to 33 I/O bits
  • Selectable 0-20MHz operation
  • HCS12
  • Up to 91 I/O bits
  • If not uses for other modules
  • Many with interrupts
  • Quasi-Fixed 24 MHz operation

8
HCS12 Prototyping Board
  • Pins out HCS12 with protection up to 13V
  • Has Serial port level changer chip (MAX232)
  • Allows for easy prototyping of design

9
HCS12 Prototyping Board
  • Serial connection to computer to program and
    debug
  • Uses CodeWarrior IDE
  • Not usable in application

10
HCS12 Prototyping Board
  • Serial connections for application
  • Upper (Female) port to use HCS12 as a device
  • Lower (Male) port to be use HCS12 as a host
  • Connect to another device

11
HCS12 Prototyping Board
  • Mode selection switch
  • Up (toward 5V jack) is to program and debug with
    computer
  • Down (toward Gnd jack) is for program to run
    after reset

12
HCS12 Prototyping Board
  • Power Jacks
  • 5 Volts and Ground
  • Reset Switch

13
HCS12 Prototyping Board
  • Sound Transducer
  • HCS12 chirps when reset
  • AC Coupled to PT5
  • Can be used to make sound in application

14
HCS12 Prototyping Board
  • Pinout Connection
  • Input Protection

15
Input Protection
  • Designed to protect input pins up to 13 Volts
  • Still have to be careful about static when
    handling HCS12 socket
  • There is capacitive coupling in zener diode array

16
HCS12 Module
  • MC9S12DG256
  • 112 LQFP
  • Do NOT Touch due to static risks

17
HCS12 Module
  • 16 MHz Crystal
  • Used generate for clock for MCU

18
HCS12 Module
  • PLL Filter
  • Used to bump clock speed up to 24MHz

19
HCS12 Module
  • Brown-out Monitor
  • Pull reset if power dips too low

20
HCS12 Module
  • Connection Pins
  • Again do not touch for static issues

21
HCS12 Module
  • XIRQ, IRQ, and Reset all pulled up on module
  • All power pins are connected together
  • Same for ground pins
  • MCU has bypass caps on board

22
CodeWarrior
  • Available for free from Freescale
  • CodeWarrior for HCS12(X)
  • http//tinyurl.com/ECE445CW
  • http//www.freescale.com/lgfiles/devsuites/HC12/CW
    HCS12X_v4.7_Special.exe?fpsp1WT_TYPEIDE20-20D
    ebug,20Compile20and20Build20ToolsWT_VENDORFR
    EESCALEWT_FILE_FORMATexeWT_ASSETDownloads
  • Wiki has blank CodeWarrior Project, Eagle
    library, and documentation
About PowerShow.com