BASCOM-AVR : Deference between atmega164p and atmega644p : REPLY
PC4 and PC5 are used by JTAG. Use [b:69ffdbb182]Disable Jtag[/b:69ffdbb182] in your code to disable the jtag
View ArticleBASCOM-AVR : Deference between atmega164p and atmega644p : REPLY
For 644P and 164P JTAG pins are the same :wink:
View ArticleBASCOM-AVR : Deference between atmega164p and atmega644p : REPLY
Yep, but most likely the fusebit is on the m644 set and on the m164 not.
View ArticleBASCOM-AVR : Deference between atmega164p and atmega644p : REPLY
Thank you Evert. Your help was invaluable. All is OK!
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Changing TCA0(TCB0) by config on the run...
Hello, If I have TCA0 configured like this: [code:1:fc68df4c42] $regfile = "atxtiny1604.dat" $crystal = 1000000 $hwstack = 40 $swstack = 16 $framesize = 32 Config Sysclock = 16_20mhz , Prescale = 16...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Changing TCA0(TCB0) by config on the run...
in the second config you can use : Config Tca0 = NORMAL , Prescale = 8 this will update only the CTRLA register. or you must specify the original config : Config Tca0 = Pwm , Prescale = 8 , Resolution...
View ArticleBASCOM-AVR : OLIMEX AVR-ISP-MK2 Programmer, issues? : REPLY
Anyone having the same problem? I have bought several AVR ISP MKII XP2 programmers, e.g [url]https://www.aliexpress.com/item/1005003063489134.html[/url] Some of them work perfectly and some don't. I...
View ArticleBASCOM-AVR : OLIMEX AVR-ISP-MK2 Programmer, issues? : REPLY
Did you try to change driver with Zadig software? [img:d2341c19db]https://www.mcselec.com/userpix/22760_Zadig_AVRispMKII_okay_3.jpg[/img:d2341c19db]
View ArticleBASCOM-AVR : OLIMEX AVR-ISP-MK2 Programmer, issues? : REPLY
EDC Thank you very, very much. Now it works in both cases. I can use them directly in Bascom.
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : NEWTOPIC
Hi friends, can anybody help me with tcb0 on AVRX128DA32? [code:1:3cb4722107] Config Tca0 = Normal , Prescale = 64 , Ovf_int = Enabled , Resolution = Normal Config Tcb0 = PERIODIC_INT, prescale=tca0,...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
Dont know if this help you. https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=15062
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
tcb0 is a different timer indeed. here the best way is to use compare mode. first you calculate it : [code:1:a0ea6a4071]Const Ctbo0per =(0.5 / 1000) /(1 /(_xtal / 2)) 'for 0.5 ms[/code:1:a0ea6a4071]...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
thank you very much!!!! [quote:759c67b743="albertsm"]tcb0 is a different timer indeed. here the best way is to use compare mode. first you calculate it : [code:1:759c67b743]Const Ctbo0per =(0.5 /...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
this is not working :( [code:1:37da2f2126] Const Ctbo0per =(1 / 1000) /(1 /(_xtal / 2)) '0,5ms Tcb0_ccmp = Ctbo0per Config Tcb0 = Periodic_int , Prescale = 2 , Run = On On Tcb0_ovf Timer_2 Enable...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
Please Enable Interrupts :D
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
now its working :) [code:1:3f7bf47215] Const Ctbo0per =(1 / 1000) /(1 /(_xtal / 2)) '0,5ms Tcb0_ccmp = Ctbo0per Config Tcb0 = Periodic_int , Prescale = 2 , Run = On On Tcb0_CAPT Timer_2 Enable...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
the invervall not working with this above ahhh.... yes I enabled interrupts.... not working :(
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
I saw it also because I want interrupt from overflow also. So in my liniked code I already wrote: [code:1:4c044febc2] Enable Tcb0_capt On Tcb0_capt Tcb0_isr[/code:1:4c044febc2]
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : TCB0 config for 1ms interrupt : REPLY
you best post your complete code if it is not working.
View Article