Quantcast
Channel: MCS Electronics Forum
Browsing all 20562 articles
Browse latest View live
↧

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

no that is not what i meant. what i mean is this : sub mysub() gosub someroutine exit sub someRoutine: nop return end sub as you can see you can nest/embed other routines in mysub but reversed it does...

View Article


BASCOM-AVR : KS0108 Display: Trouble with higher clock speed : REPLY

thanks for the feedback. attached an update. this one is almost identical to the working one. notice that i changed the name to the official name.

View Article


BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Sorry mark. That makes it no clearer to me. Someone please explain!

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

you need to read your original question : call vs gosub. then read what i wrote earlier and check the new sample.

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

[quote:ccc7641556] 'the implementation should not be inside a sub routine [/quote:ccc7641556] the implementation of "what"......

View Article


BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Of this (the sub routine): someroutine: [b:098f64e218]sub abc() 'the implementation should not be inside a sub routine end sub[/b:098f64e218] return

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Neil The code example you posted works, Mark is trying to explain you cannot have a SUB inside a Gosub routine as shown in the last example Mark posted so you cannot do this [code:1:24040b07d5]Gosub...

View Article

BASCOM-AVR : Change W5100 IP , MAC , Gateway , Subnet from file on SD : REPLY

Quick look at this.... When it doesn't work the CS is not active for the Wiznet chip. When it works, it is active. Make sure the CS is active before you try and change the settings. Regards, Mark

View Article


BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Aha thanks Peter. I was getting confused between "calling a sub" and actually putting the sub "code" inside a a label-return . Why on earth would you want to do that anyway ?? Thanks for clearing that...

View Article


BASCOM-AVR : Serial Buffer problem : NEWTOPIC

Hello I have make many application with RS232 and all run O.K. but with a new project have a problem Send out string of characters and run o.k. but sometime the last character stay in the buffer and...

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Neil [quote:3f3f1a26bf]Why on earth would you want to do that anyway ?? [/quote:3f3f1a26bf] Maybe if your really dumb or you are a Politiiton, you may have thought you invented something :-)

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

Mark is sensibly covering all the bases. While most people would realise that in makes no sense to nest sub code inside a label: return procedure, in fact its a common assembler trick to create...

View Article

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

the point i wanted to make is that while gosub and call appears to be the same for subs without parameters, there is a difference. i would advise to always use call and sub and use gosub only inside a...

View Article


BASCOM-AVR : Change W5100 IP , MAC , Gateway , Subnet from file on SD : REPLY

Hello mmarlette Yes I think you may be correct I thought that would be taken care of in the library as Cs = Portb.4 is specified in the setup or maybe the SD card is messing that up. Regards Paul

View Article

BASCOM-AVR : Change W5100 IP , MAC , Gateway , Subnet from file on SD : REPLY

Paulvk, CS is under your control. You must activate the SD or the Wiznet before a change can occur. Working on a project right now on the Ardunio/EthernetShield myself. Just finished up writing a...

View Article


BASCOM-AVR : Change W5100 IP , MAC , Gateway , Subnet from file on SD : REPLY

Hello mmarlette You forgot the beer fridge "notify when needs filling up!" :D I am moving my ENC28J60 code over to the W5100 , both the AVR and PIC33 server (look up Silicon Chip Webserver in a box)...

View Article

BASCOM-AVR : KS0108 Display: Trouble with higher clock speed : REPLY

Mark, You won't believe this, now the left side of the display is blank. it's the same as in the picures I send, but now on the other side of the display :-) W.

View Article


BASCOM-AVR : KS0108 Display: Trouble with higher clock speed : REPLY

:D :D :D Programers daily trouble

View Article

BASCOM-AVR : KS0108 Display: Trouble with higher clock speed : REPLY

it is amazing. :shock: there are only 2 differences. the working lib has : _gwrite_cmd: [b:fc5a023b27] Rcall _gRead_Status[/b:fc5a023b27] * Cbi _glcd_portm , _glcd_cd Rjmp _Gwrite_DataMisc...

View Article

BASCOM-AVR : RS232 between 2 AVR's : REPLY

Last night I picked it up again and I managed to fix it! :) The transmitter is not changed (it sends a string with the value from 1 to 25). For the receiver I changed the code into this:...

View Article
Browsing all 20562 articles
Browse latest View live


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