Most ever online: 170
Guests: 170,
Members: 0
on Sunday 15 January 2023 - 07:39:26
Chatbox
You must be logged in to post comments on this site - please either log in from the Login box or from here.If you are not registered click here to signup.
Hello everyone, doing tests with the ATMEGA2560 I was able to verify that PULSEOUT does not work on the PORTH.6 port, I did it with SET and RESET and it works correctly, then I changed to PORTD.3 and PULSEOUT works again. Since I did not find any reference to port exclusion for PULSEOUT in the HELP, I report it. Kind regards.
[b:66becc1fb8][color=red:66becc1fb8](BASCOM-AVR version : 2.0.8.6 , Latest : 2.0.8.6 )[/b:66becc1fb8][/color:66becc1fb8]
[quote:069949c1bd="MWS"]Disadvantage is, import goes not that far to allow Bascom's variables in a 'watch'-window, the only way is then to open a memory window within Studio and interpret the byte-based results oneself.[/quote:069949c1bd] This can help: https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=73929#73929
[quote:1727b777c7="kasny.ondrej"]I am talking about simulation now. When some events trigger INT0 or INT1 program jumps to desired location do some code stuff.[/quote:1727b777c7] The Bascom simulation is not the exact equivalent of the µC's hardware.
In the simulator you execute ISRs via clicking the corresponding button. As you have to trigger interrupts manually, it is obvious that anything else, including so-called 'pending interrupts', does not work.
For a more hardware-like simulation, use AVR-, now Microchip-Studio and import the Bascom obj-file. Disadvantage is, import goes not that far to allow Bascom's variables in a 'watch'-window, the only way is then to open a memory window within Studio and interpret the byte-based results oneself.
Also 'Proteus' comes into mind, Proteus is a well known name for hardware simulation. For the hobby user it is rather the expensive kind. Microchip Studio comes for free, using both, Bascom simulator and Studio, matches most of demands.
What I found working but not so elegant becouse it has some delay until whole loop is done is to check the flag in main program loop. So if PCINT2 flag is set, reset it and gosub to desired label.
Hello again, Maybe silly question. I have multiple ISRs set. INT0, INT1, PCINT2, URXC. I am talking about simulation now. When some events trigger INT0 or INT1 program jumps to desired location do some code stuff. But another event happends (PCINT2) and raise a flag in PCIFR. I know when any ISR occurs, global interrupts are set to DISABLED until actual ISR is "done", I found in this forum one post that said that after actual ISR is done, program will execute another one waiting in front and so on, but in simulator it does not execute anything else after first ISR. It jumps back to program line where first ISR occured and continue in code as it suppose to do until I simulate desired interrupt by pressing a button second time now. Do I have to take care about it somehow different or is it simulator related problem?
[b:9af2c4dd7b][color=red:9af2c4dd7b](BASCOM-AVR version : 2.0.8.6 )[/b:9af2c4dd7b][/color:9af2c4dd7b]
Did you saw a $dbg topic in the Help? This directive will write F for Sram used as Frame, H for HW stack and S for Swstack so it can be easy to monitore count or whatever. [img:58d4b28ce2]https://www.mcselec.com/userpix/22760_stacks_1.jpg[/img:58d4b28ce2]
BASCOM-AVR : PULSEOUT problem : NEWTOPIC
Hello everyone, doing tests with the ATMEGA2560 I was able to verify that PULSEOUT does not work on the PORTH.6 port, I did it wit...
»
BASCOM-AVR : ISR stacking : REPLY
[quote:7c02e83d4e="laborratte"]This can help: https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=73929...
»
BASCOM-AVR : ISR stacking : REPLY
[quote:069949c1bd="MWS"]Disadvantage is, import goes not that far to allow Bascom's variables in a 'watch'-window, the only way is...
»
BASCOM-AVR : ISR stacking : REPLY
[quote:1727b777c7="kasny.ondrej"]I am talking about simulation now. When some events trigger INT0 or INT1 program jumps to desired...
»
BASCOM-AVR : ISR stacking : REPLY
What I found working but not so elegant becouse it has some delay until whole loop is done is to check the flag in main program lo...
»
BASCOM-AVR : ISR stacking : NEWTOPIC
Hello again,
Maybe silly question. I have multiple ISRs set. INT0, INT1, PCINT2, URXC. I am talking about simulation now. When so...
Mit Taster Modis durchschalten Interrupt INT0 Ich Grüße euch
Ich möchte hier mal meine Gedanken mitteilen.
Ich habe mehrere LEDs Modis die ich mit eienem taster durchschalten möchte,
der ta...
»
LIN - Bascom Problem bei Ischarwaiting Hallo Liebe Basic Gemeinde,
ich möchte gern mit einem Attiny841 Signal vom LIN Bus lesen.
Dazu habe ich mir eine State Maschine gebastelt, welche...
»
MCP3301 mit SPI-Befehlen auslesen Hallo,
ich möchte den 13Bit-ADC mit den SPI-Befehlen auslesen. Zunächst erst mal mit dem Soft-SPI-Bus und später mit dem Hard-SPI-Bus.
Hat das jem...
»
IR Wireless Remote Control Module Beim freundlichen Chinesen gibt es kleine Fernbedienungen mit den Abmessungen 85x40x7. Im Lieferumfang ist noch ein Empfangsmodul (3 Bein IC) und e...
Internen Widerstand oder externer Widerstand!? Hi,
vorab, das Programm funktioniert es geht nur um die Frage ob ich bei dem externen Widerstand etwas falsch verstanden habe.
Bisher habe ich eine...
Date published: Mon, 18 Mar 2024 21:40:01 +0000 Details
R.I.P Ben Zijlstra
Remembering Ben Zijlstra
We hope that people who love Ben will remember and celebrate his life.
more info at MCS
www.mcselec.com/index2.ph...
»
KaRadio webradio ESP8266
The Dimitris board is available at https://github.com/dsaltas/WiFi-WebRadio
This is a hardware project for Ka-Radio
»
93C46 small tool to edit 93C46 eeprom written in BascomAVR & VB
Bascom control the 93C46 so we sent data via comport from VB
code will be added later ...
»
nRF24L01+ RC Controller This is a RC controller TX & RX unit with nRF24L01+
nRF24L01+ / with PA and LNA for longer range
facts:
TX
1 x potmeter for servo
...
»
RAW lcd Connecting RAW lcd to atmega8
the lcd is 6 digit + time glass
LCD Hour Meter for tractor ,air compressor, ect
the lcd have 4 com pins & 14...