Various : 10 digit 7-segment multiplexing : REPLY
Hello Willie Much easier for me to follow the code now thank you ! Have a look at the ROUND function in Bascom for your 0.099999 problem. Regards Paul
View ArticleVarious : 10 digit 7-segment multiplexing : REPLY
Paul, The result of 1/10 has to be 0.100 When I use Round(Average) the result is 0.000 Regards Willie
View ArticleBASCOM-AVR : Function FIX() result puzzling : NEWTOPIC
Ok FIX(X) it says "Returns for values greater then zero the next lower value, for values less then zero the next upper value." So should this not give 0.1 and not 0.0 [code:1:a010c0369a] $regfile =...
View ArticleBASCOM-AVR : Function FIX() result puzzling : REPLY
[quote:d97b4ac53e]So should this not give 0.1 and not 0.0 [/quote:d97b4ac53e] NOT 0.1 and NOT 0.0? This is typo, obviously. What value is displayed in your LCD, and what did you expect? The simulator...
View ArticleBASCOM-AVR : Function FIX() result puzzling : REPLY
Hello Arera Both ROUND and FIX() give the same on LCD 0.0 For 0.099999 I expected 0.1 for ROUND or maybe FIX() this is why am puzzled Same result [code:1:46ffdc2aae] $regfile = "m644def.dat" $crystal...
View ArticleBASCOM Project Blog : Making A Meter with the 32 x 8 matrix display : REPLY
Now I wanted to be able to display words of more than 4 letters on the display so a message could be displayed and the only way to do this is to scroll the display to the left with the code below 20...
View ArticleBASCOM-AVR : ATTINY2313, how can i set a regular interrupt, say 250ms : NEWTOPIC
I can't seem to set a regular interrupt on the ATTINY2313A (that i can adjust). The interrupt occurs, but the timing does not seem to change when i change the output compare value. Can someone explain...
View ArticleBASCOM-AVR : ATTINY2313, how can i set a regular interrupt, say 250ms : REPLY
Hi, Shouldn't you use on COMPARE1A when you want the Interrupt to fire on the comare. Regards Ian Dobson
View ArticleBASCOM-AVR : RC5 Not working in version 2.0.7.7???? : NEWTOPIC
Hello. when I use the m128def.dat then it's working when I use the m2561def.dat then it's give an error .EQU not found, probably using ....... is this a bug... $regfile = "m2561def.dat"...
View ArticleBASCOM-AVR : RC5 Not working in version 2.0.7.7???? : REPLY
Hi, Try use timer2 for rc5 Config Rc5 = Pind.2 , [b:0a509ba686]Timer = 2[/b:0a509ba686] ' , Wait = 2000 for old mode rc5 system
View ArticleBASCOM-AVR : ATTINY2313, how can i set a regular interrupt, say 250ms : REPLY
As [b:ced44de1da]i.dobson[/b:ced44de1da] said, you have to use the interrupt "Compare1a", not "Timer1". Also, you need not reload Compare1a value. [code:1:ced44de1da]$regfile = "attiny2313.dat"...
View ArticleBASCOM-AVR : I can use 3 sets of Config Sda/Scl one at time ? : NEWTOPIC
Hi, I'm making one 6 channels tone control with the TDA8425 that use I2C. This is a very cheap IC, but it controls only two channels, then I need use 3 of them. But this IC has the adress fixed in...
View ArticleBASCOM-AVR : I can use 3 sets of Config Sda/Scl one at time ? : REPLY
Hi, You don't say what AVR you want to use. The xmegas Support multiple i2c busses, the normal AVR/Mega don't. Does the chip Support multiple addresses. If yes just give each chip a different address...
View ArticleBASCOM-AVR : I can use 3 sets of Config Sda/Scl one at time ? : REPLY
Hi, You can use some hardware multiplexers like; # PCA9540B - 2-channel I2C multiplexer # PCA9541 - 2-to-1 I2C master selector with interrupt logic and reset # PCA9542A - 2-channel I2C multiplexer and...
View ArticleBASCOM-AVR : Serial communication-wifi : REPLY
Well, solved... :lol: the problem was that an IP 192.168.1.xxx can not communicate with an IP 192.168.0.xxx .... I changed the IP address of the PC with 192.168.0.xxx .... and everything is ok, the...
View ArticleBASCOM-AVR : Function FIX() result puzzling : REPLY
[quote:2fbb1e3039]For 0.099999 I expected 0.1[/quote:2fbb1e3039] Try this [code:1:2fbb1e3039]Dim S As String * 10 Dim Num1 As Single Num1 = 0.09999 S = Fusing(num1 , "#.#") Print S ' 0.1...
View ArticleBASCOM-AVR : Function FIX() result puzzling : REPLY
Hello Visovian Its not a problem in programing I am trying to understand the two functions and how they are applied. Regards Paul
View ArticleBASCOM-AVR : Serial communication-wifi : REPLY
Hello atmega64 "the problem was that an IP 192.168.1.xxx can not communicate with an IP 192.168.0.xxx .... " They can but its the sub-net mask that defines this if theirs were 255.255.0.0 they should...
View ArticleBASCOM-AVR : Function FIX() result puzzling : REPLY
fix and round result in the integer part of the floating point value. that is why they both return 0.
View ArticleBASCOM-AVR : ATTINY2313, how can i set a regular interrupt, say 250ms : REPLY
ian/visovian, thanks so much. The problem was that i was using the overflow interrupt rather than the output compare as pointed out by both of you. i didnt realise that you needed to specify the...
View Article