Share your working BASCOM-AVR code here : Test code for reading a L3G4200D...
I have changed the code like this but in hyperterminal not detected anything, you get to help me resolve this? I just wanted to release the data X, Y, Z which has been filtered thanks glen i used the...
View ArticleBASCOM-AVR : 18B20 errors : REPLY
Lower value resistors have been suggested. I doubt is 5k1 is significantly different from 4k7 at 5v. In the last 2 hours with a stiffer pullup, i had 6 errors, so I have now changed my code to the...
View ArticleBASCOM-AVR : 18B20 errors : REPLY
[quote:ba3f840061="njepsen"]In the last hour since the code change, i have seen 5 errors:[/quote:ba3f840061] Posting extracted routines out of the main code, while expecting readers to compare them,...
View ArticleBASCOM Project Blog : AVR DDS? : REPLY
[quote:40986c2a8b="techknight"]I am working on a project where I need a digitally controlled adjustable frequency between roughly 50khz and 1mhz. But the catch here is I need a full output triangle...
View ArticleBASCOM Project Blog : YIN Algorithm : NEWTOPIC
Hello, has anybody used the YIN algorithm with Bascom AVR? I am interested in understanding how to implement it on an ATmega CPU Thanks in advance
View ArticleBASCOM-AVR : 18B20 errors : REPLY
Just searching google it seems others have had problems also but no definitive result thought. Regards Paul.
View ArticleBASCOM-AVR : 18B20 errors : REPLY
I'll post the whole code tomorrow. There are no interrupts, and the rest of the code is: do read temperature wait1 loop so there isn't much else. The 5v regulator has 47ouf +0.1 on its input and...
View ArticleBASCOM-AVR : 18B20 errors : REPLY
Hi njepsen, to see the [i:5cc36fb237]error[/i:5cc36fb237] print the data from 18B20 (the 9 bytes from Ds18b20_sc) on error this way we have option to see if its wrong read or bad data and make a...
View ArticleBASCOM-AVR : define I2c pins more than once in single program? : REPLY
Hello protoncek, 'I would prefer to use a pca9515(i2c bus repeater) or a pc9516 (5 channel i2c hub) Addi
View ArticleBASCOM-AVR : 18B20 errors : REPLY
Maybe the timing in BASCOMs 1wire read routine is not good. After pulling the bus low the routine waits 15µs before reading (6µs in "_1wire_set_pin", 9µs in "_read_1wire"). That is just the max. data...
View ArticleBASCOM-AVR : define I2c pins more than once in single program? : REPLY
OK, thanks for suggestion. I will consider and see what comes cheaper: buying AD converter with different address or this repeater. The point is that AD chip i bought is way cheaper if you buy 10 pcs...
View ArticleShare your working BASCOM-AVR code here : Test code for reading a L3G4200D...
areefzack, I would first un-comment the print "Starting" line and make sure its printing something. 'print "{027}[2J{027}[1;1H"; "Starting..." -Glen
View ArticleBASCOM Project Blog : AVR DDS? : REPLY
I would use the 9850 which is what everyone else is using, but it has no support for Triangle, which is required.
View ArticleBASCOM-AVR : 18B20 errors : REPLY
Have you tried putting a cap on the power rails directly at the sensor? Something like a 1uf tant will get rid of most induced noise while providing a little up-time for the current pulses.
View ArticleBASCOM-AVR : 18B20 errors : REPLY
I think I have found the problem - an interrupt that I had overlooked. Details later.
View ArticleBASCOM-AVR : SYSSEC : NEWTOPIC
Is there a way to generate date$ and time$ from a variable that equals syssec. For example if i set a variable called say LLong that equals the number of seconds since 1/1/2000 and increment it every...
View ArticleBASCOM-AVR : SYSSEC : REPLY
Yes have a look at the ENC28J60 web server blog it runs a clock with a one second ISR from the cpu clock which updates every 24hours from NTP also here...
View ArticleBASCOM-AVR : SYSSEC : REPLY
[code:1:00b69d0d2c]_sec = time(LLong) _day = date(LLong) [/code:1:00b69d0d2c]
View ArticleBASCOM-AVR : SYSSEC : REPLY
Thanks guys. The line i was looking for was print #1 , "time=" ; time(LLong);date(LLong) and I couldn't find it. Solved my problem.
View Article