BASCOM-AVR : PCINT does not work on every input-pin : REPLY
You need to read the datasheet, as you are responsible for correctness of your code. If you address the point of 'it did not complain, thus it was supposed to work': there are tons of occasions in...
View ArticleBASCOM-AVR : Synchronizing serial strings : NEWTOPIC
What would be the best way to synchronize serial strings like GPS NMEA sentences to extract data ? In PICBASIC PRO there are the WAIT a character and SKIP n characters commands.... I am using...
View ArticleBASCOM-AVR : Synchronizing serial strings : REPLY
[quote:b323f3dba1="acjacques"]What would be the best way to synchronize serial strings like GPS NMEA sentences to extract data ? In PICBASIC PRO there are the WAIT a character and SKIP n characters...
View ArticleBASCOM-AVR : Synchronizing serial strings : REPLY
Also read about the split command in bascom very useful to break up strings with delimiters in them Regards Paul
View ArticleBASCOM-AVR : Synchronizing serial strings : REPLY
The page is in Japanese, but please translate it into the language of your country. http://www.ne.jp/asahi/shared/o-family/ElecRoom/AVRMCOM/GPS_AE-GYSFDMAXB/GPS_AE-GYSFDMAXB.html...
View ArticleShare your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...
Error accure because [Dim Offset 256 As Byte] missed. I try to use another LIB (ST7735R) on ATXMEGA128A3U but I'm not successful. I don't know, how can modify LIB file.
View ArticleShare your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...
If you can not solve with the forum information, you need to present what kind of error you will get or the source file where the error will occur. Otherwise you can not get help.
View ArticleShare your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...
Hello. I can compile file without error, but nothing is shown on display. In attach is modified your file on ATXMEGA128A3U. Best regards. M.
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : NEWTOPIC
I had 2 processors ATmega328p with corrupted bootloader when programming with Bascom. The processors were loaded with Arduino bootloader 57600 baud. I could only recover reprogramming with USBASP thru...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
Could be many causes, but a possible protection is program the bootloader, then set the fuses so that writing into the bootloader area is disabled.
View ArticleBASCOM-AVR : PCINT does not work on every input-pin : REPLY
[quote:87f90ca057]"ON PCINT18 my_ISR"[/quote:87f90ca057] yes it will compile since ON is not only used for interrupts but also for data sets. ON value ... And since PCINT18 is a numeric constant it...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
so you are using arduino boot loader? maybe it overwrites the application area. check the file size you try to write to the processor. or ask on arduino forum. i can recommend to use the MCS boot...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
Thanks for suggestion to use MCS Bootloader. I was using Arduino Bootloader because it already come loaded in my chips. I am a newbie in AVR Bascom and I am in the begining of learning curve. I will...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
I would doubt its a bad USB contact, USB has a lot of built-in error checking that should at the very least just fail, not receive bad data. But apart from that, it only takes one corrupted address to...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
The locking fuse bits of chips were all unprogramed. The corruption was done when uploading a code thru UART to Arduino bootloader. I could not set the locking bits because I am still in development...
View ArticleBASCOM-AVR : Corrupted Bootloader when programming ATmega328p : REPLY
But you can still program the lock bit which disables writing to the bootloader - as long as you are sure the bootloader works ! That does not stop you from loading new application code. I seriously...
View ArticleBASCOM-AVR : absolute value of difference : NEWTOPIC
Hi all, working with unsigned vars, calculating the absolute value of the difference between to vars afforts a couple of steps. Example using byte-constants: 89-5 = 84 'OK 5-89 = 171 'not the wanted...
View ArticleBASCOM-AVR : absolute value of difference : REPLY
I test [code:1:a666e0d938] Dim J As Byte Dim K As Byte J = 89 - 5 Print J K = 5 - 89 Print K [/code:1:a666e0d938] I have an Error : 49 Line : 17 Value doesn't fit into BYTE [-84] , in File : D:pré...
View ArticleBASCOM-AVR : absolute value of difference : REPLY
Don't know if it is more elegant, but it is faster to do it in assembler by checking the carry flag and - if necessary - negate the result: [code:1:5b50ab1c50]dim a as byte dim b as byte dim c as byte...
View ArticleBASCOM-AVR : absolute value of difference : REPLY
Thank you folks for your thougts! Laborratte: If often used, I find ASM in a sub to be quite elegant. Not for single use, but I'm sure I'll make use of it once in a while. Marc
View Article