BASCOM-AVR : Problem with bitwise operation inside sub - Please help. : REPLY
Hi, Way not just define a byte then alias the bits in the byte. dim Value as byte Val0 alias Value.0 Val1 alias Value.1 Val2 alias Value.2 and yes if you declare a variable as bit Bascom still uses a...
View ArticleBASCOM-AVR : Problem with bitwise operation inside sub - Please help. : REPLY
When i haven problem's looking at the report can sometimes be interesting. Your bit's Tick,Bit1 and Bit2 where all stored in byte 256. By adding some dummie bits we force the bits1&2 in an other...
View ArticleBASCOM-AVR : Problem with bitwise operation inside sub - Please help. : REPLY
[quote:9724774b16="Evert :-)"]When i haven problem's looking at the report can sometimes be interesting.[/quote:9724774b16] Have a look into the opcode, that's more interesting....
View ArticleBASCOM-AVR : Problem with bitwise operation inside sub - Please help. : REPLY
MWS: You have hit the nail. This helps [code:1:33c8ca064a]Sub Bit_operation() Disable Interrupts Bits_1 = Bits_2 Enable Interrupts End Sub[/code:1:33c8ca064a]
View ArticleShare your working BASCOM-AVR code here : Using the LM75/LM75-A I2C sensor :...
Here are some functions that will set-up and read the LM75/LM75A I2C buss temperature sensors they can set-up and read any of the 8 available addresses for the sensor you can have all 8 connected if...
View ArticleBASCOM-AVR : erase Atmega Eeprom in my program!? : NEWTOPIC
hi i want to erase my Atmega32 Eeprom completely. i thinks that can do it with WRITEEEPROM command. but i don't know how can i find beginning of Eeprom address and end of it. i think a code like below...
View ArticleBASCOM-AVR : erase Atmega Eeprom in my program!? : REPLY
info from M32.dat file : [b:ab3d999353]EEPROM = 1024 ; EEPROM size[/b:ab3d999353] Dim a as byte for A = 0 to 1023 writeeeprom,255,a waitms 20 next
View ArticleBASCOM-AVR : erase Atmega Eeprom in my program!? : REPLY
thanks kimmi i found it in the Atmega32a datasheets too. so thanks. is little 10 ms for writing to Eeprom? in the datasheets it take 8.5 ms with calibrated oscillator at 1MHz.
View ArticleBASCOM-AVR : how to assembled a three bye array in one data type : REPLY
With all our discussion a good keyword I have learned putting bytes array in long but this also swap my received byte array sequence. manually I swapped the first and 3rd byte and putting in long I...
View ArticleBASCOM-AVR : how to assembled a three bye array in one data type : REPLY
I am happy as I was trying to show you how to use the overlay tool in Bascom but this is only the first step. Now we have the binary value it has to be put into a signed 32 bit binary number this is a...
View ArticleAVR-DOS : changing file date and time : NEWTOPIC
After I've written data to a file on the SD card, is it possible to set the file create date and time? I hate that my logged files always have a date of 1/1/2001 12:00AM. Thanks.
View ArticleAVR-DOS : flush : NEWTOPIC
How many bytes can be written between flushes when writing data to the SD card? Can/will the buffer flush itself when it gets full?
View ArticleBASCOM-AVR : Can I store events in internal flash ? : NEWTOPIC
Hi guys, I have an application where I need to store messages (events). Since I have plenty internal flash unused, I wonder: can I store these strings in internal flash memory ? I have also enough RAM...
View ArticleBASCOM-AVR : Can I store events in internal flash ? : REPLY
Hi, If you really want to use the AVR's Flash, have a look at the Bascom bootloader examples. I would recmmend using a external eeprom. Regards Ian Dobson
View ArticleBASCOM-AVR : Can I store events in internal flash ? : REPLY
Keep in mind that Flash only has an endurance of 10.000 write cycles. In general, AVR chip design ("Havard Architecture") is not made for holding variable data in program memory.
View ArticleBASCOM-AVR : Brownout reset : REPLY
I have now got back to trying to solve this continuing brownout issue, and have spent several days testing 4 new boards. All four boards do a brownout reset about 2-5 times every 24 hrs....
View ArticleBASCOM-AVR : Brownout reset : REPLY
...are you able to disconnect the 4 RS232 and 1-Wire devices for a test? Think the trouble is from outside!
View ArticleBASCOM-AVR : Brownout reset : REPLY
Are you sure that [b:2a3e935e81]rbyte[/b:2a3e935e81] contains the mcusr value? If you press the reset button will it give 2? Or if the wd kicks in an 8?
View ArticleBASCOM-AVR : Brownout reset : REPLY
Hi, Peeking the register might not help. By the time you code is called Bascom has already run it's init code (clear ram,setup registers etc). Have a look at the $initmicro function. Regards Ian Dobson
View ArticleBASCOM-AVR : Brownout reset : REPLY
Looks like there's something wrong with the [b:41e7dd6bc6]disable jtag[/b:41e7dd6bc6] It sets bit 7 of the MCUSR (0x34) register instead of the MCUCR (0x35) register....
View Article