Search found 55 matches

by mmike87
04 Sep 2011 12:14
Forum: Visual TFT General
Topic: Adc
Replies: 1
Views: 1435

Adc

Hi tobody,
i'd like to know how implement a main loop in the software. i have 2 analog imputs (temperature sensors) and 1 digital imput (timer 0 as counter) and i'd like to put in the relative boxes the values without clicking any buttons..
any ideas?
thanks
michele
by mmike87
03 Jul 2011 12:52
Forum: Development Boards
Topic: TCP server using PIC18F452+ENC28J60
Replies: 6
Views: 3062

Re: TCP server using PIC18F452+ENC28J60

Hi,
could you post the code for 16f887 which works with ping?
thank you
mm
by mmike87
30 Jun 2011 13:39
Forum: Development Boards
Topic: Mikroeth problems
Replies: 8
Views: 2999

Re: Mikroeth problems

Hi slavisa,
i found the problem, but i don't have already done the test.. i connected the eth board to easypic through the idc10 connector to portb but it's wrong! i have to split the connections between port b&c..
by mmike87
30 Jun 2011 13:17
Forum: mikroC PRO for PIC General
Topic: Float variable to LCD
Replies: 1
Views: 1684

Re: Float variable to LCD

Hi, i had the same problem not for adc but for float operations.. i have done so: if i have to do (for example) if i have to do this count 12*1,6 i trasformed it in t=12*16 (=int value) than inttostr (t,txt) where txt is a 14character text (if i remeber) and then i printed on lcd in this way lcd_chr...
by mmike87
30 Jun 2011 09:53
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi janni, excuse me very much for the delay :) i have disabled the 2 options while programming and set oscon: this was the main problem.. than i have tested it on easypic5 and works very well.. now i have to write down a eeprom read/write code and than i'm OK. My own PCB has a problem with the butto...
by mmike87
30 Jun 2011 09:49
Forum: Development Boards
Topic: Mikroeth problems
Replies: 8
Views: 2999

Re: Mikroeth problems

Hi Slavisa, thank you for your answer and so i have bought your product ethernet board which has all the necessary component integrated (this is why the delay). I have connected it to portC of easypic5. After that i have enabled all the 8pins with the dip switch and pulled-down. than i have programm...
by mmike87
27 Jun 2011 09:40
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

sorry.. this is the last compiled MCPPI (with &&)
by mmike87
27 Jun 2011 09:39
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi janni, escuse me for the delay.. i have done another test: - as you said me, i have put the ASM LATCH... after variable declaration and now it works - when i click on RB1 (with RB0 pressed) it counts but it stops at 5.. then it doesn't work.. i think it looks like if in isr there is a stop at 5.....
by mmike87
24 Jun 2011 13:58
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi janni, thank you for all you do for me.. i have easypic5 and i have tried to set par=portD.. the result is that the isr doesn't work with &&.. i have tried || and it works.. (I have already tested RB2/3/4 as reset butrtons and they work).. RB1 works good: if i press it without release it won't in...
by mmike87
22 Jun 2011 18:47
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi,
the change of && with || was just a my test because the ISR wasn't work.. now i changed it but now it doesn't work.. the lcd now is full of strange characters :( i've tried to put an lcd_clear in the while cicle but nothing changes..
by mmike87
22 Jun 2011 07:45
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

HI janni, i use MikroC for Pic PRO v. 4.60 this is my code: #define Lo(param) ((char *)¶m)[0] #define Hi(param) ((char *)¶m)[1] #define Higher(param) ((char *)¶m)[2] #define Highest(param) ((char *)¶m)[3] // LCD module connections sbit LCD_RS at RC1_bit; sbit LCD_EN at RC2_bit; sbit ...
by mmike87
21 Jun 2011 23:39
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi janni now it works!! :D thank you!! the only problem is that it continues to count for all the time if have pressed the button instead a count after press-release..
by mmike87
20 Jun 2011 19:24
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

Hi janni this is my new code: ... void main(){ ANSELA = 1; // Configure AN pins as digital I/O ANSELB = 0; ANSELD = 0; ANSELE = 0; TRISA=1; C1ON_bit = 0; // Disable comparators C2ON_bit = 0; ADPREF1_bit=0; ADPREF0_bit=0; T2CON=0x22; // prescaler=1:8, postscaler=1:5 PR2=249; // gives 5ms interrupt fo...
by mmike87
20 Jun 2011 18:51
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

i use the internal 8mhz clock.. yes, this is my code: #define Lo(param) ((char *)¶m)[0] #define Hi(param) ((char *)¶m)[1] #define Higher(param) ((char *)¶m)[2] #define Highest(param) ((char *)¶m)[3] // LCD module connections sbit LCD_RS at RC1_bit; sbit LCD_EN at RC2_bit; sbit LCD_D4...
by mmike87
20 Jun 2011 16:08
Forum: mikroC PRO for PIC General
Topic: PIC 16F1937 Interrupt Problem..
Replies: 46
Views: 12105

Re: PIC 16F1937 Interrupt Problem..

OPS.. SOrry :D
i have compiled it with the second version of interrupt but it doesn't work.. i've also copied the main settings...

Go to advanced search