Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hi s87,Is that why it skips over? It just decides it's not going to wait the 5000 ?
Though, even at 5 it just skips over.
hi,I just collected around 50 $
but i will recieve it tonight ( here is 15:00 for now )
not too long before we continue again
of course i havehi,
I hope you are reading the Oshonsoft Basic manual.??
Do you have Microsoft Word on your PC.???
of course i have
hi erichi TT,
Load this TTpt2_1.asm into the Sim, set the PIC to 16F628A first and clock at 4mHz.
Set up the LCD as shown in the image.
Assemble using F9, Load and Run.
Note the 'conditional' assembly in the listing.
Added some Macro's for you to try...
hi eric
what is macro for ?
bank0 macro
bcf STATUS, RP0
bcf STATUS, RP1
endm
;delay loop 1 To 255 msec
loopms macro msec
movlw msec
movwf cntr0
Call wait_ms
endm
of course i have
its work , thankshi,
Change the PIC type to 16F876A, 4 mHz clock.
Copy/paste this TT4.bas into the basic window, BEFORE you press F9, close the LCD module if its showing.
Then press F9.
Select the LCD module from the TOOLS and accept it.
Using TOOLS, select micro controller view.
Run the program in Ultimate.
On the PIC view near AN0 you will see a letter 'A' , left click it, as small box will appear, use the slider to change the adc input voltage, the LCD will display the values..
Dont rush it, remember in simulation the programs run a lot slower.
its work , thankshi,
Change the PIC type to 16F876A, 4 mHz clock.
Copy/paste this TT4.bas into the basic window, BEFORE you press F9, close the LCD module if its showing.
Then press F9.
Select the LCD module from the TOOLS and accept it.
Using TOOLS, select micro controller view.
Run the program in Ultimate.
On the PIC view near AN0 you will see a letter 'A' , left click it, as small box will appear, use the slider to change the adc input voltage, the LCD will display the values..
Dont rush it, remember in simulation the programs run a lot slower.
hi s87,
I am wondering why you would want to have delay loop for 5 seconds.???
If this line Define SIMULATION_WAITMS_VALUE = 1 is placed somewhere within the program header, Oshonsoft will use a value of WaitMs 1.
If you want to, change it to a value from 1 to 10, or for a promming a PIC make it =0 or delete the line.
After you have used Oshonsoft for a while, you can work out how the WaitMs are stretched out, mine runs at about 20 times slower than the 'real' world times. Depends upon the speed of your PC..
EDIT:
So for a 5sec delay at 20, that would be a 5000mS/20 >> WaitMs 250
You can check your real times by lookingat the Sim window, see this image.
ok i ready to continue
up to youhi,
Do want Basic or Assembler programming.?
up to you
sorry for late respond ,hi,
If you use some of my external Oshonsoft modules it will make your testing easier.
Go to to this Blog link and download and install, get the free VB5 runtime files from the web and install.
This module enables you to adjust the ADC inputs in real time without the Micro View window
https://www.electro-tech-online.com...oft-simulator-16fanalog3-external-module.html
This module is for 4, push button/switch inputs
https://www.electro-tech-online.com...oft-simulator-16fkeypad4-external-module.html
This module is for 8, push button/switch inputs
https://www.electro-tech-online.com...oft-simulator-16fkeypad8-external-module.html
NOTE: you only need to intstall the VB5 runtime files once, when you have done that I can post 'exe' files
for other modules.