Post Created date
mega16a pwm problem
Thank you very much!
Friday, 15 March 2019 - 11:06
mega16a pwm problem
YOU ARE RIGHT! my calculator gave me b5 but i recognize it as 65 ...it is so embarrassing thank you again..
Thursday, 14 March 2019 - 20:26
mega16a pwm problem
yes i have 65h because i need some of portd pins as out too and the rest as inputs  in binary is 10110101
Thursday, 14 March 2019 - 19:45
mega16a pwm problem
Thank you in advance all of you for your reply and for your help . i found that if i make all pind as outputs then it works! if i make only same of them then no! even if pins with...
Thursday, 14 March 2019 - 18:22
mega16a pwm problem
.include"m16adef.inc" .cseg .org 0 rjmp reset reset: ldi r16,high(ramend) out sph,r16 ldi r16,low(ramend) out sph,r16 ldi r16,0xff out ddrb,r16 ldi r16,0x65 out ddrd,r16; only 0,...
Thursday, 14 March 2019 - 18:07
mega16a pwm problem
not only that but according to datasheet if you enable pwm than you are not be able to control this pin as normal output ! But i can .. on oc1a no on oc0  no where in both i...
Thursday, 14 March 2019 - 13:05
mega16a pwm problem
thank you for your reply, my code is an example not the real program . For example instead of tccr0 and ocr0 i can write tccr2 ,ocr2 is it the same and when i use ocr0 tccr0 i...
Thursday, 14 March 2019 - 12:51
mega16a pwm problem
So what you suppose the problem is? my assembly runs on mega 8515 ! runs too to mega 16a but only for ocr1a,oc0... ( the half of the four pwm outputs) ..???
Thursday, 14 March 2019 - 12:03
mega16a pwm problem
is something else that i could send to you to be better understood ?i use ( as only that i know)  assembly
Thursday, 14 March 2019 - 10:54
mega16a pwm problem
no i am not! i simply wrote something with capital letters and i continued to answer you with out  pressing cap lock...
Thursday, 14 March 2019 - 10:48
mega16a pwm problem
I do not shout!! why you said something like that????? The code i send here is what is runs on 8515 the same ( but with correct include..) runs on m16a where only oc1a and oc0 can...
Thursday, 14 March 2019 - 09:47
mega16a pwm problem
I write an example of my code if i use oc0 ok if i use oc2 no ! in that case insted of tccr0 i write to tccr2 and insted of ocr0 to ocr2...
Thursday, 14 March 2019 - 09:36

Pages