Hi,
Have you enabled the fuse bit "crystal full swing"? The 1284 has a Problem with Serial communications and an external Crystal.
Other than that can you try dumpting character a-z and A-Z to the Serial port and see if you can find a logic behind the error (Start/Stop bits). On and mybe try a different Serial Adapter and a different Baudrate,
Other than that I'm not sure and it's time to go to work.
Regards
Ian Dobson
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
Use proper stack and frame settings and less exclamation marks.
↧
↧
BASCOM-AVR : Debugging under AVR Studio 7 : NEWTOPIC
As a complement to the old thread
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11129&start=15
where simulation and/or debugging under AVR studio 4,5, and 6 was discussed
I just want to tell that I recently had reason to search for a realtime bug in a Xmega128d4 system, and turned to Studio 7 this time.
I had little hope for success, but to my surprice there were no complains when I opened the .obj for simulation.
Even starting a debugging session over a JTAGICE-MKII dongle worked just fine.
This was all done under Windows 10 so I guess this combo is the most modern platform we can use today.
Thought you'd like to know.
It is Always comforting to know that at least someone had a success when sitting there with a protesting setup... :)
Spring is coming. face it!
/Per
[b][color=red](BASCOM-AVR version : 2.0.7.8 )[/b][/color]
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
if you check the sample mega1284.bas from the CHIPS folder, you can see what is missing.
Config Com1 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
↧
BASCOM-AVR : an idea for the next version f Bascom AVR : REPLY
A picture to explain :[img][/img]
When I change the inc file the .bas file need to be compiled but it let blue.
also even the .inc has the $nocompile it would be nice if it was saved with F7
it is a really small detail.
jp
↧
↧
BASCOM-AVR : interfacing ADS1115 : REPLY
Thank you very much Kim.
Your example worked very well.
I compared it with my code and as far as I can see
the differens is that every read must be precded by a
I2Cstart and followed by a I2Cstop.
with that also my code worked.
Thanks again for all help
Björn
↧
BASCOM-ARDUINO : TFT 5inches, ssd1963 and Mega 2560 : REPLY
if you use
"SSD1963_functions.inc"
you will find
Sub Lcd_set_pixel(byval X1 As Word , Byval Y1 As Word , Color As Word)
where X 1, Y1 are the coordinates of point X (varies from 0 to 479) Y (varies from 0 to 799)
X is a function of the voltage
Y is function of time
If the voltage varies between 0 and 5V, you have 479 points to 5V
If you make a measurement every 10 ms you have 7990 ms for Y
JP
↧
BASCOM-AVR : Debugging under AVR Studio 7 : REPLY
Thanks!! Will give it a try.
Have fun
Ben Zijlstra
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
[quote:d73a2f6f09="albertsm"]if you check the sample mega1284.bas from the CHIPS folder, you can see what is missing.
Config Com1 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0[/quote:d73a2f6f09]
Won't make any difference.
Baud rate register UBBR0 is set the same by $baud = 9600, which also enables RXEN0/TXEN0 in UCSR0B, other settings are default after reset.
↧
↧
BASCOM-AVR : I2C: Writing / reading a Si5351 clock generator IC : REPLY
[quote:8b89fb69a8="DL4AAJ"]@lbcomms
Not sure if you still need help, but my recent experience with the mentioned adafruit board and a mega128 is as follows:
Had the same problem until I inserted WAITUS statements in my code[/quote:8b89fb69a8]
Thanks for the reply, I'd almost forgotten about this thread!
I ended up reverting to an old version of our clock generation circuit (that uses a different chip) to get that project working, we got too busy to work on writing the code from scratch for the new Si5351 clock generator IC.
The old chip we used to get us out of trouble is obsolete and unobtainable from the big/reputable suppliers (Digikey/Farnell/Mouser and the like), so I'd really like to get the Si5351 board up and running under Bascom. We know the hardware is working, connecting it to an Arduino Uno and using the Adafruit sample code got it opertating as expected.
If you have any sample code it would be greatly appreciated.
I'd be happy to pay (can use PayPal) for a library with some sample code to initialize and program the Si5351 device.
Thanks!
↧
BASCOM-AVR : I2C: Writing / reading a Si5351 clock generator IC : REPLY
[quote:96124ebd83="lbcomms"]so I'd really like to get the Si5351 board up and running under Bascom.[/quote:96124ebd83]
Then I'd suggest to use the right I2C-address.
Datasheet clearly tells, the chip uses a 7-bit address, Bascom however uses 8-bit addresses, the problem is therefor obvious.
The eight bit is the R/W-bit, which is bit 0 within Bascom's 8-bit address, so a 7-bit address of 97 actually translates to 194 for the write address and 195 for the read address.
Everything else should be a piece of cake.
↧
BASCOM-AVR : Serialin and data corruption : REPLY
Evert,
Great App Note on paralleling Mosfets!
Thanks for posting the link!
JC
↧
BASCOM Project Blog : Weatherstation : REPLY
Have made a case for the weatherstation. Sources can be found at
[url]http://www.thingiverse.com/thing:1328045[/url]
[img:a8b6968a43]http://members.home.nl/hobbycorner/images/Bascom_forum/case_weatherstation.jpg[/img:a8b6968a43]
[img:a8b6968a43]http://members.home.nl/hobbycorner/images/Bascom_forum/bottom.JPG[/img:a8b6968a43]
[img:a8b6968a43]http://members.home.nl/hobbycorner/images/Bascom_forum/middle.JPG[/img:a8b6968a43]
[img:a8b6968a43]http://members.home.nl/hobbycorner/images/Bascom_forum/top.JPG[/img:a8b6968a43]
Have fun
Ben Zijlstra
↧
↧
BASCOM-AVR : Virtual USB-port for AVR : REPLY
[quote:cb6344cd03="Petr_"]Which version of BASCOM?
In attachment, files for Bascom-AVR 2.0.7.7 or later.
For compiling, you must copy the file "swusb.LBX" in the folder "LIB", BASCOM.[/quote:cb6344cd03]
Hi Petr very thanks!! i think one of problems is the bascom version i am using 2.0.7.5 after update it´s start to work but i still have problems with other code, usb-joystick-m8-4ax-8btn-2.bas, this is another example of swusb, works great when i prog the hex but when i compile its dont work but know with this new version of bascom i am getting an syntax error i will try to find it in a code and reply here the results, again very thanks!!!
↧
BASCOM-ARDUINO : TFT 5inches, ssd1963 and Mega 2560 : REPLY
Thank you "to you (M.JP) for your cooperation with me, but you can look at this work and guiding find fault I do not know what is !!! Can you fix it please
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
Hi everybody.
Many thanks to all for the help.
The settings that Mark send solve the problem.
Many thanks Mark.
Best regards
Georges
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
I am testing many hours now.
I restart the program many times.
Just switch off / switch on.
Sometimes it work sometimes no.
Result looks like random !!!!
I start to be creasy.
Best regards
Georges
↧
↧
BASCOM-AVR : interfacing ADS1115 : REPLY
Yes its the "repeated START" and the "Ack /Nack" that works for the ADS1115
datasheet pages 17/18
[quote:7a6dc11f64]WRITING/READING THE REGISTERS modes.
To access a specific register from the ADS1115,
the master must first write an appropriate value to the Pointer register.
The Pointer register is written directly after the slave address byte, low R/W bit,
and a successful slave acknowledgment.
After the Pointer register is written, the slave acknowledges and the master issues a STOP or a repeated START condition.[/quote:7a6dc11f64]
[code:1:7a6dc11f64] I2cstart
I2cwbyte W_addr
I2cwbyte 0
I2cstart '****** STOP or a repeated START
I2cwbyte R_addr
I2crbyte Lobyte , Ack '*****
I2crbyte Hibyte , Nack '*****
I2cstop[/code:1:7a6dc11f64]
↧
BASCOM-AVR : Print lower case bug !!! : REPLY
[quote:92f329df05="georgestheking"]1I start to be creasy.[/quote:92f329df05]
If you only start to get crazy, you still may have not reached the point when it really hurts.
This would teach you then to read replies more carefully, eventually respond and react to them.
So, should you manage it to get to this point, we could rule out at least one potential error.
↧
BASCOM-ARDUINO : TFT 5inches, ssd1963 and Mega 2560 : REPLY
This work was completed on the Proteus, but (touch) does not work Are the connections on the screen is correct?
Can you please repair "I Acra" you
↧