Search found 66 matches

by nelson_mendes
17 Aug 2012 15:33
Forum: mikroC PRO for PIC General
Topic: HID_Read Interrupt
Replies: 5
Views: 2249

Re: HID_Read Interrupt

Hi Android, Thanks for your help! I have a good new and a bad new... The good one is that both my examples (UART and USB HID) are working perfectly, and the USB HID thanks to your previous advice. I became more or less understanding that my code with the USB HID library doesn't like very much to rea...
by nelson_mendes
16 Aug 2012 11:50
Forum: mikroC PRO for PIC General
Topic: HID_Read Interrupt
Replies: 5
Views: 2249

Re: HID_Read Interrupt

Hello filip, Thank you for your help. I confess that I gave some attention to the HID Read Write Interrupt example but at that time I haven't found what I was looking for, because PIR2.USBIF isn't divided in two flags like PIR1.RCIF and PIR1.TXIF; because of that I feel a bit confused. However, I de...
by nelson_mendes
14 Aug 2012 19:35
Forum: mikroC PRO for PIC General
Topic: HID_Read Interrupt
Replies: 5
Views: 2249

HID_Read Interrupt

Hello everyone, I'm trying to replicate in USB HID a code that is working for UART, but I'm a bit lost about where I can find the equivalent (for USB) PIR1.RCIF bit in order to treat the interrupt the same way. The code was written for PIC18F4553: void interrupt() iv 0x0008 ics ICS_AUTO { if(PIR1.RC...
by nelson_mendes
11 May 2011 20:39
Forum: mikroC PRO for PIC General
Topic: ECCP PWM half bridge
Replies: 3
Views: 3667

ECCP PWM half bridge

Good evening, I recently was in charge of program a PIC16F887 in order to perform half bridge PWM with the dead time. After reading the datasheet I began writing the following code for testing purpose: void InitMain() { ANSEL = 0; // Configure AN pins as digital ANSELH = 0; C1ON_bit = 0; // Disable ...
by nelson_mendes
07 May 2010 13:07
Forum: mikroC PRO for PIC General
Topic: USB HID examples issues (and UART library examples)
Replies: 5
Views: 2780

Re: USB HID examples issues

To p.erasmus: Thank you for the quick reply and my apologies for letting this subject without updating for so long. but the Microchip C18 and the mikro Compilers handles the Program (flash) vectors differently and this might be the reason that you are having difficulties making the USB work with th...
by nelson_mendes
07 May 2010 12:34
Forum: mikroC PRO for AVR General
Topic: ADC_Read() not working
Replies: 0
Views: 1635

ADC_Read() not working

Hello everyone, Recently, I started writing a program to experiment a small oven and with the data collected determine its transfer function. The experiment will possibly happen next week and I'll be using an ATmega8, three LM35 sensors and the serial port to gather the sensors data. Here's the code...
by nelson_mendes
25 Apr 2010 09:18
Forum: mikroC PRO for PIC General
Topic: USB HID examples issues (and UART library examples)
Replies: 5
Views: 2780

Re: USB HID examples issues

Please, I really need some answers, and as far as know, there's a lot of people using USB HID code from mikroe on their projects... Please help. Help from Mikroe team is also crucial to know if this is some limitation from the compiler side. I need this to later on develop an application in labview ...
by nelson_mendes
22 Apr 2010 23:29
Forum: mikroC PRO for PIC General
Topic: USB HID examples issues (and UART library examples)
Replies: 5
Views: 2780

Re: USB HID examples issues

Thank you very much for your quick reply! :D Is there a particular reason you are using HID bootloader? The examples were not written to be loaded into the PIC with a bootloader. If you are just learning USB start simple and work your way up. Well, I'm using HID bootloader because I wanted a 18F har...
by nelson_mendes
22 Apr 2010 14:24
Forum: mikroC PRO for PIC General
Topic: USB HID examples issues (and UART library examples)
Replies: 5
Views: 2780

USB HID examples issues (and UART library examples)

Good afternoon everyone, First of all, I present my apologies to be creating with possibly the same content that many others, but believe me, I didn't found the necessary help in others since I think my problem should be basic... r egardless, I really need help! Recently I made a prototype board wit...
by nelson_mendes
08 Apr 2010 12:21
Forum: mikroC PRO for PIC General
Topic: Using MikroC Pro with Microchip USB HID Bootloader
Replies: 10
Views: 10616

Re: Using MikroC Pro with Microchip USB HID Bootloader

Just to say I managed to get a solution to my problem! It was one of those situations: what if I do this that way, for most stupid it appears to be... Well, the hex generated by mikroC PRO PIC isn't directly "eatable" for the Microchips HID bootloader, so I imported it with mplab and then exported i...
by nelson_mendes
07 Apr 2010 20:21
Forum: mikroC PRO for PIC General
Topic: ADC Question
Replies: 7
Views: 2298

Re: ADC Question

You can use an opamp in a adder arrangement; this way your input, being from -2.5 to 2.5V, the output will be from 0 to 5V, compatible with the PIC specifications. Then you should use the necessary math operations in order to get the appropriate value to your needs. Glad to help and I hope it works ...
by nelson_mendes
07 Apr 2010 00:20
Forum: mikroC PRO for PIC General
Topic: Using MikroC Pro with Microchip USB HID Bootloader
Replies: 10
Views: 10616

Re: Using MikroC Pro with Microchip USB HID Bootloader

Can anyone please give me some tips in order to modify the HID bootloader from Microchip, so it can be fully compatible with mikroC PRO? So far I got the PIC communicating with the HIDBootLoader application (from Microchip). I've tested it in windows XP, windows 7 and a small linux version (UNR). Th...
by nelson_mendes
05 Apr 2010 20:13
Forum: mikroC PRO for PIC General
Topic: Using MikroC Pro with Microchip USB HID Bootloader
Replies: 10
Views: 10616

Re: Using MikroC Pro with Microchip USB HID Bootloader

Hello everyone, I recently started programming the 18F series and my main goal for now is to develop an easy hardware platform with the PIC18F4550. It should be programmable and powered by USB; inevitably, I'm entering in the HID bootloader field and for what I've read, the "USB Device - HID - HID B...
by nelson_mendes
05 Mar 2010 17:57
Forum: mikroC PRO for PIC General
Topic: Soft SPI Issue
Replies: 1
Views: 1607

Re: Soft SPI Issue

Hi, I've seen my code over and over, and the only differences I've used are related with the declarations of the SPI part. I did them in that way so the compiler would compile it without errors, but I'm not sure that I did it in the right way. Anyone felling comfortable with this subject, please fee...
by nelson_mendes
04 Mar 2010 18:30
Forum: mikroC PRO for PIC General
Topic: Soft SPI Issue
Replies: 1
Views: 1607

Soft SPI Issue

Hello everyone, I recently designed a simple stereo volume control based in several schematics available in the web, using the PGA2311 from Burr-Brown. By now I have the prototype in breadboard and the only thing that is working in terms of software is the mute control (pin2 of the PIC12F675). Here'...

Go to advanced search