BASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : NEWTOPIC
Dear All, I cannot explain why my circuit does not work. I want to use Timer 2 to generate a refernce voltage to control the dutycycle of a stepper motor. The µC is PDIP casing. OC2A is on pin 17. Pin...
View ArticleBASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : REPLY
You don't have a clk source selected in TCCR2B= &B00000000 Bits 0,1 & 2 are the clk select bits. Zero stops the timer.
View ArticleBASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : REPLY
Hi Dave, many thanks for the useful advice. I changed the registers now to: TCCR2A= &B10000011 ' Fast PWM, 1 0 Clear OC2A on Compare Match, set OC2A at BOTTOM ' TCCR2B= &B00000001 ' No...
View ArticleBASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : REPLY
Hi Christian, Remove "Start Timer2". See help:" The START TIMER statement will only work correctly when you have selected a clock source or pre-scaler value with the CONFIG TIMER statement." Dave
View ArticleBASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : REPLY
Dear dave, now it works. This is my short program for testing. dim j as integer Config PORTC.3 = Output ' For Buzzer Config Portb.3 = Output ' Output OC2A TCCR2A= &B10000011 ' Fast PWM, 1 0 Clear...
View ArticleBASCOM-AVR : Warning: accessing bit variables are not atomic : REPLY
[quote:1f174456e9="StefanHamburg"]Then you also could use Byte-Variables. [code:1:1f174456e9]DIM tick as Byte[/code:1:1f174456e9] [/quote:1f174456e9] It's also faster then using a bit...
View ArticleBASCOM-AVR : Warning: accessing bit variables are not atomic : REPLY
"It's also faster then using a bit " I found that it used less flash when working with the matrix clock where I had to get as much out of the Mega8 as I could Regards Paul
View ArticleVarious : TCPIP to RS232 module : NEWTOPIC
Found this on DX.COM then looked up documentation for it. It can be set up via the RS232 port and be a virtual serial port on a PC here is a link to the docs...
View ArticleBASCOM-AVR : ATmega8 with EA DOG-M162 using 8Bit Data interface : NEWTOPIC
Hi all, currently I'm trying to connect a Electronic Assembly EA DOGM162 LCD Display (ST7036 Controller) to an ATmega8L with 8-Bit by using BASCOM-AVR 2.0.7.7 but I fail ...... Maybe I'm to stupid ;-)...
View ArticleBASCOM-AVR : Config 1WIRE PORT-PIN ? : NEWTOPIC
Hello. My friend can`t read DS18B20 on PORTD.0 in ATmega16 (ressistor attached) Program run on test board on PORTD.7 successfully but don`t work on target board. PORTD.0 is a RXD for RS232 but nothing...
View ArticleBASCOM-AVR : EADOGS102W6 - sample code and config : NEWTOPIC
Please, write me samples code for connection LCDGRAPH display type EADOGS102W-6 102x64 , CONFIG GraphLcd not supported this display. Thnx. Sony [b:6fd83cbc1a][color=red:6fd83cbc1a](BASCOM-AVR version...
View ArticleBASCOM-AVR : ATmega8 with EA DOG-M162 using 8Bit Data interface : REPLY
hi, see [url=http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=2566&postdays=0&postorder=asc&highlight=st7036&start=75]this post[/url] page 6...
View ArticleBASCOM-AVR : Config 1WIRE PORT-PIN ? : REPLY
the official syntax is to use a port but pin is accepted too. the problem is when you enable rs232 (using $baud, print etc) the tx and rx pins are enabled for rs232. so when you do not need RX you...
View ArticleBASCOM-AVR : ATmega8 with EA DOG-M162 using 8Bit Data interface : REPLY
this is all : Config Lcdpin = Pin , port = PORTa , E = portb.0 , Rs = portb.1 Config Lcd = 16 * 2 , Chipset = Dogm162v5 of course change for your ports and pins. $lcd = &HC000 and $lcdrs =...
View ArticleVarious : TCPIP to RS232 module : REPLY
i had a bad experience with DX. I can not recommend them. i bought some hardware and paid using paypal. And then they send some email where they wanted me to send screen shots of my paypal account....
View ArticleShare your working BASCOM-AVR code here : ISD1700 in SPI Mode with ATMega8 :...
thank you for sharing. how is the sound quality? i remember the first ones were nice but only for some toys, but that is ages ago :-)
View ArticleShare your working BASCOM-AVR code here : ISD1700 in SPI Mode with ATMega8 :...
the sound quality is good, very more than toys applications! ISD has an Audio/AUX output also. this is better for high quality project, switch between Audio and AUX mode is possible with set and reset...
View ArticleBASCOM-AVR : Warning: accessing bit variables are not atomic : REPLY
there is no single instruction that can alter a bit of a variable. so a read/write instruction on any memory location is not atomic by default. it is not a bug. the same thing applies to bytes, ints,...
View ArticleBASCOM-AVR : Gosub vs. Call a procedure : REPLY
even if you use s="sdfsf the compiler will add a " at the end automatically. if you look with code explorer you will see an error as well. not really usable yet till the dat files contains all...
View Article