Search found 12 matches
- 20 Apr 2017 18:11
- Forum: mikroPascal PRO for AVR General
- Topic: assembler "call2 does not work
- Replies: 2
- Views: 3183
Re: assembler "call2 does not work
Hi, I meant "call" - I let go of the shift!
- 20 Apr 2017 15:21
- Forum: mikroPascal PRO for AVR General
- Topic: assembler "call2 does not work
- Replies: 2
- Views: 3183
assembler "call2 does not work
I have a procedure "procedure proc1;begin end" and I try to call it from assembler "asm call _proc1+0" as per the compiler ASM file.
It says "call for permitted for ATINY2313". How can I call a pascal procedure from assembler - I would expect to copy the ASM.
Thanks
It says "call for permitted for ATINY2313". How can I call a pascal procedure from assembler - I would expect to copy the ASM.
Thanks
- 20 Apr 2017 15:18
- Forum: mikroPascal PRO for AVR General
- Topic: ierrors in multiple logical expressions
- Replies: 2
- Views: 1854
Re: ierrors in multiple logical expressions
I will do that. Could there be a problem due to program size? And is it possible that the interrupt upsets the conditional evaluation? Is there otherwise any significance in the order of the conditionals? my program is quite large and it is a problem to reduce it while keeping the error. Can you tel...
- 18 Apr 2017 13:21
- Forum: mikroPascal PRO for AVR General
- Topic: ierrors in multiple logical expressions
- Replies: 2
- Views: 1854
ierrors in multiple logical expressions
There seem to be errors in some logical code compilation! I have a timer that decrements a counter if it is not zero: if iTimeOut > 0 then iIimeout := iTimeout - 1 and I also look at the input state of a pin (PinB.B2 in this cese) I also have a loop that loops until the timeout is zero. There appear...
- 04 Feb 2017 19:31
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Re: Setting Fuses from KIKRO PASCAL
Thanks, thats what I thought.
It seems as if AVRFLASH does it, but since it is not in the HEX, then my programmer does not do it.
That's what I thought and found, so sorry for the long dialogue!
Best wishes
Lawrence
It seems as if AVRFLASH does it, but since it is not in the HEX, then my programmer does not do it.
That's what I thought and found, so sorry for the long dialogue!
Best wishes
Lawrence
- 02 Feb 2017 17:54
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Re: Setting Fuses from MIKRO PASCAL
what i meant was setting them from within your IDE, not from the code itself, of course.
Actually, I have not found that changing them here has any affect. Can you show me how to do it, and where in the hex file it is happening. Perhaps it is the AVRDUDE that is ignoring them
Thanks
Lawrence
Actually, I have not found that changing them here has any affect. Can you show me how to do it, and where in the hex file it is happening. Perhaps it is the AVRDUDE that is ignoring them
Thanks
Lawrence
- 31 Jan 2017 21:14
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Re: Setting Fuses from MIKRO PASCAL
No, as I understand it that tells pascal what clock I have chosen (depanding on the crystel or not).
I want to set the actual fuses from pascal like I can from the programmer. I cannot find a method from pascal that actually does this.
Thanks
Lawrence
I want to set the actual fuses from pascal like I can from the programmer. I cannot find a method from pascal that actually does this.
Thanks
Lawrence
- 31 Jan 2017 12:52
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Re: Setting Fuses from KIKRO PASCAL
Of course I meant the 2313 AVR.
I cannot see where to change the PROCESSOR clock speed, I think that the sources apply to the timers.
Can you give an example?
What lines in the HEX file do this?
Thanks
Lawrence
I cannot see where to change the PROCESSOR clock speed, I think that the sources apply to the timers.
Can you give an example?
What lines in the HEX file do this?
Thanks
Lawrence
- 29 Jan 2017 23:13
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Re: Setting Fuses from KIKRO PASCAL
of course I am talking about AVR T2323
Lawrence
Lawrence
- 29 Jan 2017 23:12
- Forum: mikroPascal PRO for AVR General
- Topic: Setting Fuses from KIKRO PASCAL
- Replies: 9
- Views: 4005
Setting Fuses from KIKRO PASCAL
I want to include the fuse settings in my project and automatically change them when I send the hex file using avrdude. Does the HEX file contain the fuse settings so that a programmer can implement them. I have set avrdude to allow programming of the fuses and changed the clock source but to no ava...
- 04 Jan 2017 00:23
- Forum: AVR PRO Compilers
- Topic: sleep and wakeup in software example
- Replies: 1
- Views: 4187
sleep and wakeup in software example
I want to put a T2313 AVR to sleep, and wake it with the watchdog timer or automatically. I would like it to sleep for say 30 seconds and then wake up, run my code and then sleep again. I have got it to sleep using GCC, but I would like to do it all in MikroP. I have got the watchdog timer to work a...
- 14 Jun 2012 14:45
- Forum: mikroPascal PRO for AVR General
- Topic: Mikro Pascal with GCC "c" and "asm", VUSB development
- Replies: 1
- Views: 2174
Mikro Pascal with GCC "c" and "asm", VUSB development
I have some C and assembler code for AVR running the VUSB software stack (as well as the ATINY USB stack). How do I incorporate calls to this code from Pascal? I am not sure I will be able to get to run with Mikro C although I will try it. How would I use the assembler stuff with Pascal?
Lawrence
Lawrence