Try deleting [b:187b7a721c]bascom-avr.xml[/b:187b7a721c] (make first an backup of it).
↧
BASCOM-AVR : Error - Control 'dxDockErrorPanel' has no parent window : REPLY
↧
BASCOM-AVR Old versions : (Need Help) : How to configure DS3231 RTC with AVR8535? : REPLY
Start with the [b:f98c42941c]i2cscan.bas[/b:f98c42941c] sample from your Bascom sample directory to see if the i2c bus is working and the slave address matches.
↧
↧
BASCOM-AVR Old versions : Error - Control 'dxDockErrorPanel' has no parent window : REPLY
Hello Evert,
Can't find the bascom-avr.xml
Where is the location?
Best regards
toto
↧
BASCOM-AVR : I2C Problem with ATMega 168pa : REPLY
Hi Marks,
I think I´m coming closer to the reason of my problem. Sometimes the display is working. It´s not a problem of AVRStudio or Bascom. It´s a selfproduced problem. It seems that there could be a problem with ground on the board.
So the bus is sometimes active and sometimes breaking down.
thanks
Benedikt
↧
Share your working BASCOM-AVR code here : Fast library for SSD1963 LCD : REPLY
Thank you MrShilov for your hard work and sharing the Bascom code for the SSD1963 color display.
I have not programmed color displays with XMega chips.
1. Do you have an idea of how difficult it would be to modify the code posted here to work on XMega?
2. Would the touch-screen routines be similar to the ones posted for the SSD1289 display?
Any help or advice you have would be greatly appreciated. Based on your (or others) feedback, I will decide to purchase additional XMega chips.
↧
↧
BASCOM-AVR : Using SPI on 3.5 display with FTDI FT800 controller. : REPLY
Hi
I know it is not 100 % related to the topic but has anybody used this display ? Any feedback ?
http://www.buydisplay.com/default/5-inch-tft-lcd-module-800x480-display-w-controller-i2c-serial-spi.html
Cheers
Nico
↧
BASCOM-AVR Old versions : Error - Control 'dxDockErrorPanel' has no parent window : REPLY
you can try reset dock too in the options, environment, IDE
or for the location : Help, About, click xml folder link.
↧
Share your working BASCOM-AVR code here : Fast library for SSD1963 LCD : REPLY
well done ! This is a big display ! And it still works smooth. Love the YT videos :D
I had no idea there were so many different graphical chips. Keep up the great work.
↧
Share your working BASCOM-AVR code here : Fast library for SSD1963 LCD : REPLY
this code need small adjustments for xmega.
For example :
Dim Color_h_ssd1963 As Iram Byte At 22
Dim Color_l_ssd1963 As Iram Byte At 21
These are registers R21 and R22. The xmega can not linear address these registers. But you can use bascom SETREG statement. Or use some asm with STS.
↧
↧
BASCOM-AVR : ATXMega128D4U : REPLY
i always start with the original atmel INC file. but i do not see one for this chip.
is this an existing chip or a new one or sample?
maybe they ship a def file with an update of studio 6.1
did you check there?
anyway, with this new INC file i compare with other chips which one is close. i use a windiff tool for that.
then i compare using windiff the two INC files, and make a copy of a bascom dat file and make all the required changed based on the difference of the INC files.
i can help but first i need the INC/XML files.
↧
BASCOM-AVR : I2C slave and master in same chip..? : REPLY
Thanks Mark, got that part working now :-)
↧
BASCOM-AVR : TWI slave Acking and Nacking question : NEWTOPIC
I need to read and write a variety of byte lengths to a slave, 1-158 bytes.
According to the Config twiSlave help this is done by enabling UserAck
But this part of the help text confuses me:
"You can use this to send data with variable length to the slave. In this case, BTR only serves as an index. You must make sure to reset TWI_ACK when you have send the last byte to the master."
It is the receiving end that does the Acking and Nacking, so the first part makes sense, when sending data to the slave, the slave will Ack or Nack.
But the second part; "make sure to reset TWI_ACK when you have send the last byte to the master." in this case the Master does the Acking and Nacking and will Nack the last byte... :-s
I can't get this to work without changing the BTR parameter of the Config statement, is there a way of dynamically changing it in code?
If so I could send a data length byte and set BTR before starting to read data from the slave...
[b:623daf1a89][color=red:623daf1a89](BASCOM-AVR version : 2.0.7.7 )[/b:623daf1a89][/color:623daf1a89]
↧
BASCOM-AVR : Problem with serial data transfer : REPLY
Hi Mark Alberts ,
many thanks for your answer . In small steps I think I learn the principles of serial communication . I found no infos about the order " ISR : " . Is it the same as " OnRxd: " ? The State Machine is still a great mistery for me .
Thanks
Hans
↧
↧
BASCOM-AVR Old versions : Error - Control 'dxDockErrorPanel' has no parent window : REPLY
Had the same problem now also when running the 1.11.8.7, "reset dock" as Mark suggested worked fine.
↧
BASCOM-AVR : Problem with 1wire DS1820 : NEWTOPIC
Hello, Im trying some code from here for temperature measuring with 1wire DS1820, it is code from LarsK : http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=7768&highlight=ds1820
Everything working about 10 minutes with 2xDS18S20 sensors, but after 10 minutes temperature measuring stop working and display only -0,5 C for both sensors like the same as disconected sensors .
I'm the beginner so I dont know where is the problem, can somebody help to fix that freezing? It seems like 1wire stop working...or what?
thank you
my code>
Ds1820:
'I = 1wirecount()
'Dsid1(1) = 1wsearchfirst()
'Dsid2(1) = 1wsearchnext()
'Cls
'Locate 1 , 1
'Lcd "Anz. Sensoren: " ; I
'Wait 1
'Cls
'Locate 1 , 1
'Lcd Dsid1(8) 'markantes Byte (CRC ?) als Identifizierer anzeigen
'Locate 1 , 6
'Lcd Dsid2(8)
'Wait 1
Gosub Tempwandeln 'LCD-Anzeige bleibt während Wandlungszeit ca. 0,8s länger stehen!
1wreset
1wwrite &H55 'Befehl "Match ROM" (bestimmten Sensor adressieren/auswählen)
For I = 1 To 8
1wwrite Dsid1(i) '64bit bzw. 8byte lange ID-Nummer übermitteln
Next I
1wwrite &HBE 'Befehl "Read Scratchpad" (Speicher auslesen)
Rom1 = 1wread(1)
Temp1 = Rom1 / 2 'for 18S20
If Temp1 >= 100 Then 'so spare ich mir das Auslesen des 2. Bytes, schränke aber auch den Anzeigebereich ein
Temp1 = Temp1 - 128
End If
1wreset
1wwrite &H55 'Befehl "Match ROM" (bestimmten Sensor adressieren/auswählen)
For I = 1 To 8
1wwrite Dsid2(i)
Next I
1wwrite &HBE 'Befehl "Read Scratchpad" (Speicher auslesen)
Rom2 = 1wread(2) 'for DS18B20
Temp2 = Rom2 / 2
If Temp1 >= 100 Then 'so spare ich mir das Auslesen des 2. Bytes, schränke aber auch den Anzeigebereich ein
Temp1 = Temp1 - 128
End If
Locate 1 , 1
Lcd Temp1 ; "°C" ;
Locate 2 , 1
Lcd Temp2 ; "°C"
'Waitms 100
Return
Tempwandeln:
1wreset
1wwrite &HCC 'Befehl "Skip ROM" (auf einzelne Adressierung verzichten)
1wwrite &H44 'Befehl zur Temperaturmessung
Ddrb.4 = 1 'DQ-line MUSS spätestens 10µs nach dem Befehl &H44 für mind. 750ms auf High gelegt werden!
Waitms 10 'jeder 18 S/B 20 zieht jetzt ca. 1,5mA
Ddrb.4 = 0
Return
[b:e614e3607d][color=red:e614e3607d](BASCOM-AVR version : 11.9.5 , Latest : 2.0.7.7 )[/b:e614e3607d][/color:e614e3607d]
↧
BASCOM-AVR : ATXMega128D4U : REPLY
Hi and thanks for the reply,
The chip is part of the D series ATXmega and a 44 pin version. It is similar to the 128D3 but with fewer pins and fewer resources.
I did as you suggested and compared the INC files and looked at the BASCOM def file for a 128D3 - I think I am way out of my depth so help you will be able to help.
I attach the INC files for the two chips and the BASCOM def file for the 128D3.
Peter
↧
BASCOM-AVR : ATXMega128D4U : REPLY
I failed to add the attachments - my apologies.
Peter
↧
↧
BASCOM-AVR : ATXMega128D4U : REPLY
Failed again - sorry.
Ahh - I was trying to attach files with an extension that was not allowed.
This should be good to go.
Peter
↧
Share your working BASCOM-AVR code here : Fast library for SSD1963 LCD : REPLY
[quote:5015775afd="enniom"]
1. Do you have an idea of how difficult it would be to modify the code posted here to work on XMega?[/quote:5015775afd]
As Mark say, "this code need small adjustments". The simplest way is to change:
Dim Color_h_ssd1963 As Iram Byte At 22
Dim Color_l_ssd1963 As Iram Byte At 21
to:
[b:5015775afd]Dim Color_h_ssd1963
Dim Color_l_ssd1963 [/b:5015775afd]
[quote:5015775afd="enniom"]2. Would the touch-screen routines be similar to the ones posted for the SSD1289 display?[/quote:5015775afd]
SSD1289 and SSD1963 displays use the same touch chips XPT2046. So routines is compatible, but need to correct X and Y coefficients due to screen size.
↧
BASCOM-8051 : Automatic covertion to ASCII problem : REPLY
I don't use any connection....
It's just a simple program, here :
[code:1:8e3d1266d7]
Dim A As Word
Dim C As Word
Dim X As Word
Dim D As Word
B:
Print "ENTER A NUMBER IN RANGE FROM 1 TO 100"
Input A
If A >= 1 And A <= 100 Then
For X = A To 100
Print X
Next X
Else
Print "NUMBER IS NOT IN THE RANGE FROM 1 TO 100"
Gosub B
End If
Print "DO YOU WANT TO START PROGRAM AGAIN.TYPE 1 FOR YES ."
Input C
If C = 1 Then
Gosub B
Else
End
End If
[/code:1:8e3d1266d7]
But when i type letter (lets say "a" ...) it prints from ASCII code number of a to 100, how to fix that?
↧