Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ATtiny45 reset

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Tue Jun 30, 2020 8:25 am    Post subject: ATtiny45 reset Reply with quote

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
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Tue Jun 30, 2020 9:40 am    Post subject: Reply with quote

question has already been answered...

https://bascomforum.de/index.php?thread/2056-attiny45-reset/&postID=33672#post33672

_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Tue Jun 30, 2020 10:19 am    Post subject: Reply with quote

hi,

what I'm about to say will startle MWS. Laughing


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
Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Tue Jun 30, 2020 10:59 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Tue Jun 30, 2020 1:07 pm    Post subject: Reply with quote

I have to pilot an IR emitter at 38kHz so what do you recommend?
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Tue Jun 30, 2020 3:04 pm    Post subject: Reply with quote

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 Wink

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
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Tue Jun 30, 2020 3:44 pm    Post subject: Reply with quote

for your IR emitter
did you look at GETRC5 function ?


Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum