View previous topic :: View next topic |
Author |
Message |
atmega64
Joined: 23 Feb 2005 Posts: 298 Location: ITALY
|
Posted: Tue Jun 30, 2020 8:25 am Post subject: ATtiny45 reset |
|
|
Hi,
it's the first time I use a micro from the ATtiny family ...
I have an ATtiny45, is a 8.2k resistor between the RESET and VCC ok for the reset?
(BASCOM-AVR version : 2.0.8.2 ) |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Jun 30, 2020 10:19 am Post subject: |
|
|
hi,
what I'm about to say will startle MWS.
For years I've been leaving the AVR reset pin unconnected.
I avoid using it except for spi programming and never as an input to avoid unwanted resets.
For Attiny it removes 1 pin as input but this pin can still be used as output or ADC reader.
JP
_________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
atmega64
Joined: 23 Feb 2005 Posts: 298 Location: ITALY
|
Posted: Tue Jun 30, 2020 10:59 am Post subject: |
|
|
I have to generate a 38KHz PWM without using an external clock ...
I managed to set the clock to 8MHz but maximum arrival at 35KHz ...
how can i solve? |
|
Back to top |
|
|
atmega64
Joined: 23 Feb 2005 Posts: 298 Location: ITALY
|
Posted: Tue Jun 30, 2020 1:07 pm Post subject: |
|
|
I have to pilot an IR emitter at 38kHz so what do you recommend? |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Jun 30, 2020 3:04 pm Post subject: |
|
|
Quote: | I managed to set the clock to 8MHz but maximum arrival at 35KHz ... |
for a T85 I use
programmed with Mysmart USB lignt ISP program
to do that : add this line after the end
$prog &HFC , &HE2 , &HDF , &HFF ' generated. Take care that the chip supports all fuse bytes.
for the pwm, I think you must search in the forum
but the pin for pwm is not the reset one
You have fast pwm possibilities with Tiny : see the datasheet
timer are only 8bits
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Jun 30, 2020 3:44 pm Post subject: |
|
|
for your IR emitter
did you look at GETRC5 function ?
_________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
|