Search found 10 matches

by cbrun_CCI
06 Sep 2018 18:32
Forum: mikroC PRO for PIC General
Topic: Wireless UART PIC 2 PIC
Replies: 0
Views: 742

Wireless UART PIC 2 PIC

I am using two PIC18F45K50's @ 16MHz (Crystal), each connected to a Seeed Studio 433MHz HC-12 based serial transceiver module. Both boards are set to 9600 baud. I have tried every way I know to get a simple text message across without success. While I have confirmed the data on the transmitter side ...
by cbrun_CCI
16 Apr 2018 21:05
Forum: mikroBootloader
Topic: Customizable Firmware update utility for USB HID bootloader
Replies: 1
Views: 3609

Customizable Firmware update utility for USB HID bootloader

Curious whether or not MikroE plans to release source code for bootloader PC application or if there are plans to allow customization. We rely on MicroE compilers and development tools to produce products which ultimately end up in the hands of customers, however, sending a customer the MikroE brand...
by cbrun_CCI
21 Mar 2018 14:09
Forum: mikroC PRO for PIC General
Topic: Interrupt on change using 18F45K50
Replies: 3
Views: 1482

Re: Interrupt on change using 18F45K50

In case anyone runs into the same issue I had, I have the solution now. This has nothing to do with using a different family of PIC, just the method of using the ISR. Cannot read individual IOC ports inside the ISR reliably. You must read the entire port twice to get an accurate state. Here is the w...
by cbrun_CCI
09 Mar 2018 19:40
Forum: mikroC PRO for PIC General
Topic: Interrupt on change using 18F45K50
Replies: 3
Views: 1482

Re: Interrupt on change using 18F45K50

Okay... This is just plain weird!!! If I evaluate just one interrupt (either one), the counts are spot on. If I try to evaluate two, only one is accurate and the other misses pulses. As I mentioned before, this code worked perfectly on the PIC18F4520. Even works on PIC18F2520, PIC18F4550, etc. I tes...
by cbrun_CCI
07 Mar 2018 19:48
Forum: mikroBasic PRO for PIC General
Topic: measuring the width of pulse
Replies: 10
Views: 2820

Re: measuring the width of pulse

Hi qbasic, Unfortunately I do not have basic code. The interrupt section is the part you want to pay close attention to. The rest is primarily setting MCU configurations and LCD display commands. If you refer to the datasheet for the chip you want to use, you can easily gather requirements for CCP1 ...
by cbrun_CCI
05 Mar 2018 19:48
Forum: mikroC PRO for PIC General
Topic: Interrupt on change using 18F45K50
Replies: 3
Views: 1482

Re: Interrupt on change using 18F45K50

I made some changes that included enabling individual IOCBx_bits necessary to set functionality on each PORT. I missed this in the datasheet. I still didn't get any response until I changed oscillator settings. Furthermore, when I set the clock settings to PLL disabled and no divider, only one port ...
by cbrun_CCI
01 Mar 2018 22:34
Forum: mikroBasic PRO for PIC General
Topic: measuring the width of pulse
Replies: 10
Views: 2820

Re: measuring the width of pulse

Hi qbasic, Not sure if you're looking for time between rising edge and falling edge of pulse or complete cycle? Here is code I use for pulse rising/falling edge. Hope it helps. unsigned int Capture; unsigned int LeadEdge; char *txtVal = "PULSE"; void interrupt() { if(INTCON.F2 == 1) // If Timer 0 in...
by cbrun_CCI
01 Mar 2018 21:16
Forum: mikroC PRO for PIC General
Topic: Interrupt on change using 18F45K50
Replies: 3
Views: 1482

Interrupt on change using 18F45K50

Wondered if anyone has used the 18F45K50 controllers. I'm trying to migrate my code from the PIC18F4520 and having trouble with the PortB on change functionality. I'm sure I've missed something simple as I've gone through the datasheet a number of times but can't seem to zero in on the problem. Just...
by cbrun_CCI
10 Jan 2018 15:09
Forum: mikroC PRO for PIC General
Topic: formating encoder count to 2 decimal places for LCD
Replies: 11
Views: 3597

Re: formating encoder count to 2 decimal places for LCD

Hi Mario, I tried your code and while it does work, I found a couple formatting issues and it doesn't seem to process both encoders properly. I think you were giving me the general idea of how to format the results another way. I understand your method and will incorporate since the code is much cle...
by cbrun_CCI
08 Jan 2018 17:01
Forum: mikroC PRO for PIC General
Topic: formating encoder count to 2 decimal places for LCD
Replies: 11
Views: 3597

Re: formating encoder count to 2 decimal places for LCD

Hi Mario,

I will give this a try and let you know. Thank you very much for your help.

Go to advanced search