Search found 748 matches
- 27 Jul 2023 09:50
- Forum: mikroBasic PRO for PIC General
- Topic: Interaction between interrupts
- Replies: 1
- Views: 483
Interaction between interrupts
Hi, I am using a PIC18F45K22 running at 64MHz int osc to generate a 50Hz PWM for a servo, and it works fine using the capture/compare in special events mode to compare the CCPH & L with Timer 1. I can get the 1.0 to 3.0ms pulses I need at 50Hz rate very easily. To enter the low set, high set, and sa...
- 24 May 2023 07:58
- Forum: mikroBasic PRO for PIC General
- Topic: Uart1 and Uart2 problems
- Replies: 7
- Views: 924
Re: Uart1 and Uart2 problems
You have cleared the muddy waters for me again Dany.
Thanks.
Thanks.
- 23 May 2023 09:01
- Forum: mikroBasic PRO for PIC General
- Topic: Uart1 and Uart2 problems
- Replies: 7
- Views: 924
Re: Uart1 and Uart2 problems
Hi Again, I just commented out all the uart_set_active commands, erased the PIC compleletly and re-programmed. It still works with a more reasonable 668 bytes of ROM and 40 Bytes of RAM used. (684 ROM if I use the sub routine to send bytes.) This seems to be very much as it was when I started and ha...
- 23 May 2023 08:20
- Forum: mikroBasic PRO for PIC General
- Topic: Uart1 and Uart2 problems
- Replies: 7
- Views: 924
Re: Uart1 and Uart2 problems
Hi Dany, I thought that I had replied Yesterday but it seems like not. I had SW1 set to D7 and SW1 set to D6, both jumpers J3 & $ to USB UART. Adpater on flying leads to RC6(TX) RC7 (Rx) Gnd (0V). I had also tried reversing those connections between port C and D. If I understand the circuit diagram ...
- 18 May 2023 19:45
- Forum: mikroBasic PRO for PIC General
- Topic: Uart1 and Uart2 problems
- Replies: 7
- Views: 924
Re: Uart1 and Uart2 problems
Thanks Dany,
It will be Monday now as the files are at work and I have reached that age where I can do four days a week,
The set active function is not well explained in the help file. Thanks for clarifying that.
I will post the config as soon as I can.
Kind regards.
It will be Monday now as the files are at work and I have reached that age where I can do four days a week,
The set active function is not well explained in the help file. Thanks for clarifying that.
I will post the config as soon as I can.
Kind regards.
- 18 May 2023 09:05
- Forum: mikroBasic PRO for PIC General
- Topic: Uart1 and Uart2 problems
- Replies: 7
- Views: 924
Uart1 and Uart2 problems
Hi, Sorry for the long post but this is driving me crazy!I am using a P18F45K22 running at 64MHz int osc. Windows 10 Fully updated, EasyPIC v7, MB v7.6.0. I have aslo tried a P18F44K22 and a couple of other 45K22s so I think I can rule out faulty ICs. I would like to use both uarts, Uart1 to read da...
- 29 Sep 2022 10:55
- Forum: mikroBasic PRO for PIC General
- Topic: ICD not supported message
- Replies: 8
- Views: 1447
Re: ICD not supported message
Thanks Filip.
If this is the same dll as before then that stops it altogether as it is appears to be for 32Bit windows from memory, however I will set it all back to V1.3 again and try. It did update to V1.6 at some stage recently and I hoped that would sort it out, but it did not.
If this is the same dll as before then that stops it altogether as it is appears to be for 32Bit windows from memory, however I will set it all back to V1.3 again and try. It did update to V1.6 at some stage recently and I hoped that would sort it out, but it did not.
- 26 Sep 2022 12:35
- Forum: mikroBasic PRO for PIC General
- Topic: ICD not supported message
- Replies: 8
- Views: 1447
Re: ICD not supported message
I bought the EasyPic 8 about 18 months ago and that seems incompatible with MikroBasic as well. It supports programming the 18F45K42 but I cannot get it to debug at all. Is it a problem with the EP8 programming system or is there just no way that MB will debug this particular chip? Is support for Mi...
- 14 Sep 2022 09:07
- Forum: mikroBasic PRO for PIC General
- Topic: MicroBasic EasyPic8 & Codegrip
- Replies: 1
- Views: 803
MicroBasic EasyPic8 & Codegrip
I have been here before about 6 months ago but since then, the firmware versions for Codegrip have been updated. When I opened Codegrip suite the other day, it told me I needed to update the Firmware to v 1.6.0, which I did, hoping that the promised fix for incompatibility with MB had been incorpora...
- 07 Sep 2022 11:26
- Forum: mikroBasic PRO for PIC General
- Topic: Time routines
- Replies: 2
- Views: 855
Re: Time routines
Thanks Filip.
- 05 Sep 2022 12:16
- Forum: mikroBasic PRO for PIC General
- Topic: Time routines
- Replies: 2
- Views: 855
Time routines
Hi, Silly question. dim GTDV as string[18] GTDV = DoGetDateTime() dim GTDV as string[18] GTDV = GetDateTime() Can anyone tell me what the diference is between the two functions above? I want to use one of them to time stamp the eeprom in a PIC18F45K22, but cannot see any difference in performance wh...
- 03 Aug 2022 15:34
- Forum: mikroBasic PRO for PIC General
- Topic: ICD not supported message
- Replies: 8
- Views: 1447
Re: ICD not supported message
I was wrong again! The 45K42 programs pertectly well from the EasyPic7, but still does not allow ICD from the EasyPic7. Details are: MikroBasic V7.6.0, MP firmware (EasyPic7) V2.1,1 Device Firmware v01.16.12.21 (Shows as up to date). Updated to Mikro Prog suite v2.90 as suggested. Program running wi...
- 03 Aug 2022 08:46
- Forum: mikroBasic PRO for PIC General
- Topic: ICD not supported message
- Replies: 8
- Views: 1447
Re: ICD not supported message
Thanks Filip
I have been diverted from this project for a few months, so I only just picked up the instructions.
It works perfectly now, thank you.
I have been diverted from this project for a few months, so I only just picked up the instructions.
It works perfectly now, thank you.
- 04 May 2022 15:51
- Forum: mikroBasic PRO for PIC General
- Topic: Settings for remappable uarts
- Replies: 8
- Views: 1803
Re: Settings for remappable uarts
Thanks jani, tried that, and to my suprise it works on both uarts now. The suprise was to find a solution after 3 days of frustration! The rejection of Uart1_write_text("Hello") was solved by re-installing MB (V7.6.0) No idea why that was getting upset. Yeah, this processor is quite complicated with...
- 04 May 2022 08:32
- Forum: mikroBasic PRO for PIC General
- Topic: Settings for remappable uarts
- Replies: 8
- Views: 1803
Re: Settings for remappable uarts
Thanks janni, I will have another try today. Uart1 is set to RC6 and RC7 on the EP 7 board then runs tyo the PC via a USB - Serial converter. That worked fine with the 45K22 so I am pretty sure that is OK. The compiler is MB V7.6.0 (latest version I believe). Uart1_write_text ("Hello") has always wo...