Can I use the TBC register insted of TMR0c register ?

Status
Not open for further replies.

Mongkol.t

Newbie
Joined
Apr 13, 2022
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
23
I used the holtek and the current microcontroller is life off and we plan to change to use HT66F004. Can we use the TBC for interupt both EMI and timer? If No, please advise.

Thanks
 

Init_timer proc
mov a,00000000B; TBON (bit 7) = 0 TBCK (bit6)=0, TB02..TB00) = 000
mov TBC,a
ret
set TBC.7 ; TBON(bit 7) = 1,start timer
Is it workable for above procedure.?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…