Search found 20 matches

by ventete
09 Jan 2021 23:16
Forum: mikroProg™ programmer and debugger
Topic: programmer won't work on PIC18F27K42
Replies: 1
Views: 1238

Re: programmer won't work on PIC18F27K42

UPDATE: just to let people know that I figured out the problem, I needed to update the firmware on my programmer; it now works. Thanks for reading.
by ventete
09 Jan 2021 22:54
Forum: mikroProg™ programmer and debugger
Topic: programmer won't work on PIC18F27K42
Replies: 1
Views: 1238

programmer won't work on PIC18F27K42

I am using the MikroC pro compiler with a usb programmer. I have a simple program (LED blink) that works and programs perfectly on a PIC18F26K22. When I edit the project to use a PIC18F27K42 I get a popup window that says "Device Not Recognized; MCU selected PIC18F27K42" . I have several new K42's a...
by ventete
09 Jan 2021 02:18
Forum: mikroC PRO for PIC General
Topic: resizing watch window
Replies: 2
Views: 813

Re: resizing watch window

paulfjujo,

thank you for the help; I did not have success with the Tools Layout toolbar but simply started a new project with the old code and things eventually worked for me.
by ventete
17 Nov 2020 22:22
Forum: mikroC PRO for PIC General
Topic: resizing watch window
Replies: 2
Views: 813

resizing watch window

Somehow I managed to set the watch window so it is displayed horizontally across the page with the program code below it. I've tried the forum and messed around with MIKROc ad nauseum. I cannot set it back to the way it used to be (sitting to the right of the code display). I suspect it is something...
by ventete
27 Jul 2020 23:07
Forum: mikroC PRO for PIC General
Topic: no printf in MikroC
Replies: 2
Views: 757

Re: no printf in MikroC

hexreader, thank you very much; it now looks so simple that I'm a bit embarrassed that I didn't think of it. :oops:
by ventete
27 Jul 2020 20:26
Forum: mikroC PRO for PIC General
Topic: no printf in MikroC
Replies: 2
Views: 757

no printf in MikroC

Hi, I just want to add a minus sign(-) to a float and send it out the serial port (PIC 16F876A). Why is it so difficult? Can anyone give me some (simple) advice on how to proceed? Without the 'printf' function I'm having a difficult time. I'm using the MikroProC compiler.

Thank you, Marc
by ventete
15 Mar 2020 00:32
Forum: mikroC PRO for PIC General
Topic: trouble with SPI (PIC to PIC)
Replies: 1
Views: 1086

trouble with SPI (PIC to PIC)

though I've used PIC's awhile, I've never tried to have one microcontroller talk to another (PIC16F876A) using SPI protocol. (MIKROC compiler) I can see the Master output change on a scope as I raise and lower the pin ("INPUT") but I cannot get the Slave pin (RB0) to change. I know I'm overlooking s...
by ventete
31 Jul 2016 18:05
Forum: mikroC PRO for PIC General
Topic: MikroC Pro math function question
Replies: 2
Views: 1863

MikroC Pro math function question

I am trying to do some floating point calculations and am having some problems. I suspect that the two functions in the c_Math library in Mikro C , ldexp and frexp may be helpful to me but have no idea how to use them or what they are for. I can find little to no explanation in the 'help' menu as to...
by ventete
11 Jan 2016 21:01
Forum: mikroC PRO for PIC General
Topic: atoi issues
Replies: 5
Views: 2473

Re: atoi issues

To all: Thank you for your help. I have solved my atoi issue with all your help. Basically what I am trying to accomplish is to control 2 servos with a joystick and an RS232 link. I've foun that the most efficient way is to send one long string over the link (format: 123456aok0). The 123 is position...
by ventete
11 Jan 2016 02:06
Forum: mikroC PRO for PIC General
Topic: atoi issues
Replies: 2
Views: 1487

atoi issues

Could someone tell me what I'm doing wrong with this simple code??? I can't seem to get atoi to perform the way I expect. Thank you, Marc /* I'm running this program on a PIC18F450 at 20MHz using the MikroC compiler */ unsigned short result; char teststring[3]={0,0,0}; char uart_rd; void main() { UA...
by ventete
11 Jan 2016 02:06
Forum: mikroC PRO for PIC General
Topic: atoi issues
Replies: 5
Views: 2473

atoi issues

Could someone tell me what I'm doing wrong with this simple code??? I can't seem to get atoi to perform the way I expect. Thank you, Marc /* I'm running this program on a PIC18F450 at 20MHz using the MikroC compiler */ unsigned short result; char teststring[3]={0,0,0}; char uart_rd; void main() { UA...
by ventete
26 Nov 2015 20:40
Forum: Website & Forums General Discussion
Topic: mikroC splitstring function?
Replies: 2
Views: 3519

Re: mikroC splitstring function?

Aleksandar,
thank you very much for your help. I appreciate it.

Marc
by ventete
22 Nov 2015 02:15
Forum: Website & Forums General Discussion
Topic: mikroC splitstring function?
Replies: 2
Views: 3519

mikroC splitstring function?

I am using MIKROC and can find no "split string" function. I have a string 6 characters long and need to split out the last 3. The first 3 are letters and I managed to seperate them using "memmove" from the C_string library; how do I get the next 3 that are digits? Any suggestions would be appreciat...
by ventete
17 Nov 2015 00:14
Forum: mikroC General
Topic: PIC 2 PIC Master/Slave Communication using I2C... Enjoy
Replies: 41
Views: 109365

Re: PIC 2 PIC Master/Slave Communication using I2C... Enjoy

Hi Tom,
I have a silly question: if the slave is using portC for inputs to send data back to the master, how do you connect the master to the slave since the I2C link is already using two of the portC pins (14 and 15 on the PIC16F876A) thank you, Marc
by ventete
16 Nov 2015 23:47
Forum: mikroC PRO for PIC General
Topic: how to read porta as binary input to a variable
Replies: 2
Views: 1246

Re: how to read porta as binary input to a variable

thank you for your input; I have it working now. Marc

Go to advanced search