Quantcast
Channel: MCS Electronics Forum
Viewing all 20606 articles
Browse latest View live

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
Still not working?! Error:202 Line 22 .EQU not found, probably using functions that are not supported by the selected chip (RAMPZ)

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
I don't have this LCD to check. Try this library.

BASCOM-AVR : EEPROM : REPLY

$
0
0
Hi NE5660, The EEprom only gets written once, A=3 Your program will loop forever, as "B" never gets incremented. Can't really see any point to the loop unless you were attempting testing to see if the EEprom can really do 100,000 writes. They wouldn't specify that in the data sheet if it wasn't important. Regards Dean

BASCOM Project Blog : Building a Webserver with a Wiznet W5100 : REPLY

$
0
0
Now with some pages for the SD card that show the variables loaded from the settings file. There is basic.cgi and home.cgi you can change the user and password with the basic.cgi the other buttons are not yet implemented, the user & password are stored in EEPROM so this shows how to write to EEPROM using a web page. Some things I want to add in the future: 1. Update firmware via web page 2. Update firmware via SD card This has been done by others just have to integrate their examples. 4. Add my serial BUSS (74HC595s etc) 5. E-Mail alerts 6.Real time clock from NTP 7.Add command prompt on RS232 Regards Paul

BASCOM-AVR : EEPROM : REPLY

$
0
0
HI ,THANKS ALOT FOR YOUR REPLAY IT IS EXAMPLE.I WANT KNOW IF I CAN WRITE EEPROM VARIABLE FOR MORE THAN 100000 TIMES

BASCOM-AVR : EEPROM : REPLY

$
0
0
HI,H AM SORRY.I FORGOT INCREASE B DIM A AS ERAM BYTE,B AS LONG B=0 DO A=3 WAITMS 5 INCR B LOOP UNTIL B=100000 END I WANT TO KNOW,CAN I WRITE MOR THAN 100000 IN EEPROM VARIABLE SUCH AS A?

BASCOM-AVR : EEPROM : REPLY

$
0
0
No, because you leave the loop after 100.000 cycles! There is no real difference compared to your first post, all aswers apply the same. I guess you need to save values in cade of a powerdown?

BASCOM-AVR : EEPROM : REPLY

$
0
0
Hi, I've done tests and in my tests the AVR eeprom lasted atleast 150K writes. I used code similar to this: [code:1:f5af3c0d58] dim A as byte dim B as Byte dim w as dword do incr B incr w Writeeeprom b , 10 print w Readeeprom A, 10 if A <> B then print "Write error" do : loop endif Loop [/code:1:f5af3c0d58] Regards Ian Dobson

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : NEWTOPIC

$
0
0
Hello all, I am porting code from an ATMEGA325 to an ATMEGA324a. I am having trouble getting the PCINT10 interrupt to fire. This is the code used: [code:1:7b201ca3b0] 'Read the FFIT Output from the Module On PinB.2 Portb.2 = 1 'turn on pull up Pcmsk1 = &B0000_0100 'set mask for port pin use On Pcint1 Isr_ffit 'Ffit = B.2 Enable Pcint1 [/code:1:7b201ca3b0] This is virtually the same code as what was in the M325, only the interrupt number was different. Can anyone see what I did wrong? Thank you, Tim [b:7b201ca3b0][color=red:7b201ca3b0](BASCOM-AVR version : 2.0.7.7 )[/b:7b201ca3b0][/color:7b201ca3b0]

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
Hello everyone, I'm trying to use MrShilov's Nokia library glcd-Nokia3310.lib as found on the very first post of this thread with a XMEGA192A3. I find that the characters displayed on the screen are not the correct ones. I'm not familiar with assembler but I can guess it might be associated with RAMPZ used. Has anyone successfully used this library with XMEGA? What changes are necessary? Thanks. Ennio

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : REPLY

$
0
0
What is "PCINT" in Bascom? Possible interrupts here http://wiki.mcselec.com/bavr/ENABLE Maybe INT1 is what You looking for. I think "PCINT" is only on the schematic

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
I test glcd-Nokia3310.lib on AT90USB1286 (RAM>64k)- it works properly. With XMEGA still not tested.

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : REPLY

$
0
0
No [b:d085923c3f]EDC[/b:d085923c3f] [b:d085923c3f]TSEYFARTH [/b:d085923c3f] is asking about [b:d085923c3f]P[/b:d085923c3f]in [b:d085923c3f]C[/b:d085923c3f]hange [b:d085923c3f]I[/b:d085923c3f]nterrupt

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : REPLY

$
0
0
Sometimes i wrote something and then think :roll: In this case maybe config is needed http://wiki.mcselec.com/bavr/CONFIG_INTX

BASCOM-AVR : GETADC(9) on mega32u4 : REPLY

$
0
0
wow getadc(33) works....!!!! very thanks for the help.... :) Gabriel

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : REPLY

$
0
0
[quote:4a3c8c09fd="TSEYFARTH"]Can anyone see what I did wrong?[/quote:4a3c8c09fd] As always you should have provided a compilable sample, as then the potential helper don't has to create it. Imho this is duty and a sign of kindness from the one seeking help, as such a sample is needed to make simulation possible. In this case I've created it, looks like that: [code:1:4a3c8c09fd]$Regfile = "m324padef.dat" $Crystal = 4000000 $hwstack = 32 $swstack = 8 $framesize = 24 Portb.2 = 1 'turn on pull up Pcmsk1 = &B0000_0100 'set mask for port pin use On Pcint1 Isr_ffit 'Ffit = B.2 Enable Pcint1 Enable Interrupts Do Loop Isr_ffit: Return[/code:1:4a3c8c09fd] The code works exactly as it should, at least to say by watching its behavior within an AVR-Studio 4 simulation, so the error must be elsewhere. Did you check the electrical connections, as the footprint of ATM324 and ATM325 greatly differ?

BASCOM-AVR : Help with PCINT10 on ATMEGA324a : REPLY

$
0
0
Hello MWS. I apologize. I had gotten the problem fixed last night and did not update the post here. The code I posted worked perfectly, something else was getting in the ways. I do thank you for your time with posting your code sample. The meat of it is the same as mine and it does work in hardware. Again, MWS, thank you for your post and your time. Tim

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
As a follow-up, I've attached a screen shot of the Nokia 5510 to show how the characters are not correct. Maybe someone more familiar with assembler can determine why with XMEGA the lookup function returns sequential characters. (By the way, the display should be as shown on MrShilov's first post.)

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
Can you attach source of this example?

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
As you requested, I have attached the sample you included in the first post of this thread - with modifications to run on XMEGA. Thanks for your help.
Viewing all 20606 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>