The MC68HC908LB8 Microcontroller
Dimmable Light Ballast with Power Factor Correction, Rev. 1
Freescale Semiconductor 9
• Dual channel high resolution PWM (HRP) with deadtime insertion and shutdown input to perform
light control and dimming functions for ballasts. The outputs use frequency dithering to achieve a
3.9 ns output resolution.
• Dual channel pulse width modulator module to provide power factor correction capability
• 7-channel, 8-bit successive approximation analog-to-digital converter (ADC)
• Comparator for power factor correction capability or for general-purpose use
• 7-bit keyboard interrupt
• One 16-bit, 2-channel timer interface module with one output available on port pin (PTA6) for input
capture and PWM
• 17 general-purpose input/output (I/O) pins and one input-only pin
– Three shared with HRP module
– Three shared with PWM module
– Three shared with comparator
– Seven shared with ADC module (AD[0:6])
– One shared with timer channel 0
– Two shared with OSC1 and OSC2
– One shared with reset
– Seven shared with keyboard interrupt
– One input-only pin shared with external interrupt (IRQ)
• Available packages:
– 20-pin small outline integrated chip (SOIC) package
– 20-pin plastic dual in-line package (PDIP)
• On-chip programming firmware for use with host personal computer which does not require high
voltage for entry
• System protection features:
– Optional computer operating properly (COP) reset
– Low-voltage reset
– Illegal opcode detection with reset
– Illegal address detection with reset
• Low-power design; fully static with stop and wait modes
• Standard low-power modes of operation:
– Wait mode
– Stop mode
• Master reset pin and power-on reset (POR)
• 674 bytes of FLASH programming routines in read-only memory (ROM)
• Break module (BRK) to allow single breakpoint setting during in-circuit debugging
• Internal pullup on RST pin to reduce customer system cost
• Selectable pullups on ports A and C
– Selection on an individual port bit basis
– During output mode, pullups are disengaged
• High current 10 mA sink / 10 mA source capability on all port pins