Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to set OCR1A in ATmega1280

Status
Not open for further replies.

vikrant

Junior Member level 2
Joined
Jun 30, 2006
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,425
ocr1a

hi all,

I am using ATmega1280 uC. I am configuring timer1 for 1 sec tick but
not able to write OCR1A register. actually i tried it in debugging mode using JtagIce mkII . I am writng hex value 0x1C20 to OCR1A register but only
OCR1AL is updated with the value 0x20 .the higher byte register OCR1AH is not at all updated . Please let me know where is the problem.
 

ocr 1a

I think that problem exist because you only use one command for updating the OCR1A register.

Can you do it twice, the first one for updating the OCR1AL and the second one for OCR1AH.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top