Search found 142 matches
- Mon 2024-03-25 20:48
- Forum: Simulation
- Topic: Constant array in PIC16 program memory
- Replies: 3
- Views: 88
Re: Constant array in PIC16 program memory
Thank you Ettore. To me too they are stored in program memory.(in other locations). What I found strange is that during debug, *main@p should show the values of the variable pointed by p (that are '0','1','0','1'), so the same values showed correctly by array a. Instead, during debug, *main@p shows ...
- Sun 2024-03-24 17:54
- Forum: Simulation
- Topic: Constant array in PIC16 program memory
- Replies: 3
- Views: 88
Constant array in PIC16 program memory
Hello. I'd like to put a constant array in program memory of PIC16F877, like below (see enclosure too): #include <htc.h> #include <stdio.h> #include <string.h> void main(void) { char a[5]; const unsigned char buffer[]={'0','1','0','1','0'}; const unsigned char* p ; p=&buffer; for (char cur = 0; ...
- Mon 2023-11-27 8:59
- Forum: Simulation
- Topic: Simulation of the charging of a lead acid accumulator.
- Replies: 0
- Views: 915
Simulation of the charging of a lead acid accumulator.
Hello. Since I don't think there's a model for that, I kindly ask a suggestion, if any, on how to put together existing Proteus component or primitives to try to approximate the charging process (in term of I and V behaviour for instance of a 6 V 4 Ah accumulator, or others). I looked for that in th...
- Mon 2023-08-21 11:08
- Forum: Simulation
- Topic: Export disassembly code
- Replies: 5
- Views: 854
Re: Export disassembly code
Thanks Ettore. I don't have the same menu with right click, as yours (see enclosures). In my case I can't select what is in yellow background window, which is the only window where I see assembly. I guess it's due to the fact that I still have old version 8.3. Thanks a lot anyway for your clarificat...
- Mon 2023-08-21 9:43
- Forum: Simulation
- Topic: Export disassembly code
- Replies: 5
- Views: 854
Re: Export disassembly code
Thanks Ettore, but the disassembly code I meant is like the enclosed one (see print screen *jpg) on the yellow background during a debug pause. I can't select code in that page with the command you wrote, can I? The commands you wrote work on the source code, not on the disassembly code... Please te...
- Sat 2023-08-19 10:20
- Forum: Simulation
- Topic: Export disassembly code
- Replies: 5
- Views: 854
Export disassembly code
Hello.
Is there any way one can export, in text file or so, or save the disassembly code (recalled on screen during debug with right mouse button) ?
Other than with "print screen", of course.
I took a look at debug.as, but it's quite different...
Thank you
Regards
Is there any way one can export, in text file or so, or save the disassembly code (recalled on screen during debug with right mouse button) ?
Other than with "print screen", of course.
I took a look at debug.as, but it's quite different...
Thank you
Regards
- Mon 2023-06-26 18:43
- Forum: Simulation
- Topic: Sleep instruction executed when SE bit is not set. Do nothing.
- Replies: 2
- Views: 707
Re: Sleep instruction executed when SE bit is not set. Do nothing.
Great Ettore. Thanks a lot. I performed the disassembly (see enclosed .jpg) through AVRStudio. As far as I understand (hope not bad), there's a startup_call_main that calls the main function, and at the return from main there's a new call to a no source and _exit sub. Inside this _exit, there's the ...
- Sun 2023-06-25 6:43
- Forum: Simulation
- Topic: Sleep instruction executed when SE bit is not set. Do nothing.
- Replies: 2
- Views: 707
Sleep instruction executed when SE bit is not set. Do nothing.
Hello. When I run the code below in Proteus ( IAR C) found in the web (complete code is folder "THN128 receiver" by A.Yerezeyev), between one timer1 interrupt service and the other I have the message as per subject: Sleep instruction executed when SE bit is not set. Do nothing. Don't know ...
- Mon 2022-11-07 16:39
- Forum: Simulation
- Topic: I2C debugger and I2Cslave component
- Replies: 2
- Views: 264
Re: I2C debugger and I2Cslave component
Thank you Ettore, for your kind clarification.
Regards.
Regards.
- Mon 2022-11-07 8:22
- Forum: Simulation
- Topic: I2C debugger and I2Cslave component
- Replies: 2
- Views: 264
I2C debugger and I2Cslave component
Hello. As enclosed, I'm trying to simulate a circuit with PCF8566 LCD driver. I know there's no model, that's why I would limit myself to simulate only the I2C communication. My question is: - how can I set up I2C debugger, in cases, as this one, where I have a device address (0x7E) and also a devic...
- Mon 2022-05-16 12:03
- Forum: Simulation
- Topic: Two-deep buffer RCREG in USART debug
- Replies: 14
- Views: 9758
Re: Two-deep buffer RCREG in USART debug
That's clear, Ettore. I normally use a professional licence 8.3 starter kit and sometimes, to see all potentiality, the Demo version 8.8 (an example that shows the Internal model data window I talked about is enclosed). It is there that I saw the FIFO value during debug. But now it's clear, I'll use...
- Mon 2022-05-16 10:55
- Forum: Simulation
- Topic: Two-deep buffer RCREG in USART debug
- Replies: 14
- Views: 9758
Re: Two-deep buffer RCREG in USART debug
Thank you, Ettore. As far as I understand at the moment being , 8. CPU/Internal Model Data (that is not Data Memory) is only a possible choice, and visualisation, during debug in Proteus Demonstration version (I have Demo version "8.8"). I was confused because it has the same addresses of ...
- Sun 2022-05-15 21:24
- Forum: Simulation
- Topic: Two-deep buffer RCREG in USART debug
- Replies: 14
- Views: 9758
Re: Two-deep buffer RCREG in USART debug
Ettore, I think I was wrong. Checking the Proton code there's no assignment of the FIFO values to those addresses (or to a variable) in Internal Model Data. Furthermore as you can see enclosed, also in equivalent pure assembly code (not Proton) I have in C9 and CA the FIFO buffer values assigned. So...
- Mon 2022-05-09 19:51
- Forum: Simulation
- Topic: Two-deep buffer RCREG in USART debug
- Replies: 14
- Views: 9758
Re: Two-deep buffer RCREG in USART debug
That's now clear to me, Ettore. I came to the same conclusion thinking about it in the latest hours. Probably, I still have to check, the explanation is in the Proton basic compiler code I used for my simple USART example program. Somewhere in the compiler routine for USART there's probably the copy...
- Mon 2022-05-09 17:36
- Forum: Simulation
- Topic: Two-deep buffer RCREG in USART debug
- Replies: 14
- Views: 9758
Re: Two-deep buffer RCREG in USART debug
PIC16F876A.
But Ettore, it's OK, it was just a curiosity.
A way also to understand what Intenal Model data window is for.
The log with USART diagnosy you taught me is much better, since it is has also time sequence during RSR completion.
Thank you so much.
Regards
But Ettore, it's OK, it was just a curiosity.
A way also to understand what Intenal Model data window is for.
The log with USART diagnosy you taught me is much better, since it is has also time sequence during RSR completion.
Thank you so much.
Regards