MOTOROLA
8-4
MC68HC05T16
PULSE WIDTH MODULATOR
8
In order to prevent transient noise at the output during MCU write to the 8-bit PWM and 6-bit BRM
registers, double buffering is used. Programming of the 2 registers must follow the sequence as
shown below:
LDA BRM_value
STA $35
;Data put in 6-bit BRM buffer
LDA PWM_value
STA $36
;Load 6-bit BRM and 8-bit PWM register
The instruction STA $35 simply puts the 6-bit BRM data in a buffer. Output is not affected at this
time. The instruction STA $36, then, puts the total 14-bit data to BRM and PWM register at the
same time. Output waveform will change accordingly starting from the beginning of the next PWM
cycle.
TPG
68
Summary of Contents for MC68HC05T16
Page 2: ......
Page 14: ...MOTOROLA vi MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 12 ...
Page 16: ...MOTOROLA viii MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 14 ...
Page 18: ...MOTOROLA x MC68HC05T16 THIS PAGE LEFT BLANK INTENTIONALLY TPG 16 ...
Page 54: ...MOTOROLA 5 12 MC68HC05T16 TIMERS 5 THIS PAGE LEFT BLANK INTENTIONALLY TPG 52 ...
Page 64: ...MOTOROLA 6 10 MC68HC05T16 M BUS SERIAL INTERFACE 6 THIS PAGE LEFT BLANK INTENTIONALLY TPG 62 ...
Page 110: ...MOTOROLA 12 4 MC68HC05T16 LOW POWER MODES 12 THIS PAGE LEFT BLANK INTENTIONALLY TPG 108 ...
Page 116: ...MOTOROLA 13 6 MC68HC05T16 OPERATING MODES 13 THIS PAGE LEFT BLANK INTENTIONALLY TPG 114 ...