Search found 18 matches

by gas
07 Oct 2010 08:15
Forum: mikroC PRO for PIC General
Topic: Interrupt for PIC 16F887 2 unit
Replies: 3
Views: 1384

Re: Interrupt for PIC 16F887 2 unit

Search for multiplexing here, or on google. That'll be way more efficient and elegant.
by gas
07 Oct 2010 08:12
Forum: mikroC PRO for PIC General
Topic: pic16f887 interrupt problem
Replies: 16
Views: 5907

Re: pic16f887 interrupt problem

Take a look at your code:

Code: Select all

        TRISA = 0;
        PORTA = 0xFF;
        TRISA = 0xff;

        PORTE = 0xFF;
        TRISE = 0xff;
        TRISA = 0x0;
        PORTA = 0;
Why would you set direction and state multiple times?
by gas
05 Oct 2010 10:04
Forum: mikroC PRO for PIC General
Topic: I2C interface
Replies: 3
Views: 1618

Re: I2C interface

Usually it's actually specified quite well in the datasheets for components like EEPROM, RTCC and such, but if you need even more depth, refer to this document: http://www.nxp.com/documents/user_manual/UM10204.pdf :)
by gas
05 Oct 2010 07:06
Forum: mikroC General
Topic: Hi / Lo
Replies: 1
Views: 1132

Hi / Lo

Let's say, hypothetically, that I have the variable, "value" of 800 (Decimal). I wan't to break this value up in 2 x 1 byte values for storage in an EEPROM. 800d is 11 0010 0000b, so theoretically (as far as I know), Hi(value) should return 0000 0011b, and Lo(value) should return 0010 0000b. Practic...
by gas
01 Oct 2010 13:06
Forum: mikroC General
Topic: I2C / EEPROM Problem
Replies: 4
Views: 2382

Re: I2C / EEPROM Problem

I'm starting to think, could it be that the calibration values are larger than one byte? If so, could anyone hint as to how I would split them up into several 8-bit values?
by gas
01 Oct 2010 12:49
Forum: mikroC General
Topic: I2C / EEPROM Problem
Replies: 4
Views: 2382

I2C / EEPROM Problem

I've started trying to get an EEPROM on a I2C-line working. The development board I use is an LV 24-33A with PIC24FJ96GA010 MCU. I have a program where I utilize the touch screen with pretty much the same code as the touch panel example. I want to try and save the calibration data to EEPROM, but app...
by gas
28 Sep 2010 12:19
Forum: mikroC General
Topic: Starting to get frustrated with pin control
Replies: 1
Views: 1022

Re: Starting to get frustrated with pin control

Code: Select all

TRISA=0 //Sets all pins on port A as output
PORTA.F# = 1 //Turn pin # on

Code: Select all

TRISA=1 //Sets all pisn on port A as input
if(PORTA.F#){
//insert code to execute when port A pin # is pressed
}
Simple as that :)

Perhaps you have to execute:

Code: Select all

ANSEL = 0
In order to make the port digital input/output.
by gas
23 Sep 2010 12:03
Forum: mikroC PRO for PIC General
Topic: For just wont work
Replies: 10
Views: 2903

Re: For just wont work

You swapped the following two lines for the program to work:

Code: Select all

int i;
PORTC = ~PORTC;
When I look at that segment, it'd seem it wouldn't matter what order they were in, since the integer isn't used in the "PORTC = ~PORTC;"-line anyway.
by gas
21 Sep 2010 12:29
Forum: mikroC PRO for PIC General
Topic: For just wont work
Replies: 10
Views: 2903

Re: For just wont work

Hmm, why is it like that though? I don't see the integer used in the compliment.
by gas
17 Sep 2010 12:55
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: transducer srm400 with dspic30f4013
Replies: 6
Views: 2699

Re: transducer srm400 with dspic30f4013

Those are some quite broad and unspecified questions. Can you narrow it down to a few more specific questions? It really is nearly impossible to give you whatever answer you're actually looking for, as it seems you're nearly asking for a complete program. In the specifications for the transducer you...
by gas
17 Sep 2010 10:28
Forum: mikroC PRO for PIC General
Topic: Make a "0" a "00" for timer ?
Replies: 8
Views: 2331

Re: Make a "0" a "00" for timer ?

I would do something more like this, replacing the character in the string (assuming that you have a string containing the number prior to outputting it to the GLCD): if(second_string[4]<49){ second_string[4]=48; } This will properly replace the space with a zero. Replace "second_string" and the "4"...
by gas
14 Sep 2010 12:03
Forum: Development Boards
Topic: Random reset with touchpanel
Replies: 2
Views: 1268

Re: Random reset with touchpanel

Dear Sir, First of all, you shouldn't replace any of the components of the development board on your own hand. Instead, when you found out that something was wrong with the board, you should have contacted our Technical Support, and they would give you the right information on how to solve this pro...
by gas
10 Sep 2010 12:04
Forum: Development Boards
Topic: Random reset with touchpanel
Replies: 2
Views: 1268

Random reset with touchpanel

I've just recently mounted the touch panel on my LV24-33A board (128x64px. display). Both display and touch panel are the ones bought from mikroE. Unfortunately it didn't work immediately, and I had to replace one of the BC556's for the drive (with a BCX79 - shouldn't make a difference). Everything ...
by gas
08 Sep 2010 06:36
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Implementing USART in my code
Replies: 3
Views: 2034

Re: Implementing USART in my code

Yes, I did, and I am in fact able to send short strings over RS232, but since I have multiple interrupts and various other things in this program things suddenly become way more problematic. :) Edit: I did just try to implement some basic code into this program, where I'd just send "123" over USART ...

Go to advanced search