Skip to content

mcu_timer: initialize fields from manual#125

Open
jcmoyer wants to merge 1 commit into
nukeykt:masterfrom
jcmoyer:fix-timer-init
Open

mcu_timer: initialize fields from manual#125
jcmoyer wants to merge 1 commit into
nukeykt:masterfrom
jcmoyer:fix-timer-init

Conversation

@jcmoyer

@jcmoyer jcmoyer commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Hi,

According to the H8/532 manual, the following timer registers have initial values other than zero:

FRT register initial value
OCRA 0xffff
OCRB 0xffff
8-bit timer register initial value
TCSR 0x10
TCORA 0xff
TCORB 0xff

Currently these are initialized to zero. This doesn't matter for most romsets I've tested, but it does affect cm300-v1.10 output and possibly others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant