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.

AVR Registers Problem

Status
Not open for further replies.

Behzad.1947

Newbie level 1
Newbie level 1
Joined
May 4, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
6
Hi dears
I have problem with avr registers.
1. what is the equivalent of
(PCMSK |= (1<<PCINT1); //atTINY13) on the atmega 8 ?

2. how could I set the avr(atmega8 or 16) clock on 9.6Mhz ?

Thanks
 

The interrupt control register names and settings are different on the ATmega8 than on the ATtiny13. The best way to determine the settings you need is to download the ATmega 8 data sheet and refer to the External Interrupts section.

There are a number of clock options available. They are set by the fuses. Refer to System Clock and Clock Options in the data sheet. There are 9.6 Mhz crystals available that could be used for an external oscillator. The maximum internal oscillator is 8 Mhz, but this might be able to be bumped up higher using the OSCCAL register. It would be trial and error, to see if it could be adjusted to 9.6 Mhz, and depend on the accuracy required.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top