Search found 29 matches

by Hamilton
07 Aug 2006 13:04
Forum: mikroC General
Topic: asking for Port state... simple Question
Replies: 4
Views: 2013

Code: Select all

if ( PORTA.F0 == 0 ) { }
or

Code: Select all

 if ( !PORTA.F0 ) { }


It is the same.
by Hamilton
03 Aug 2006 14:01
Forum: mikroC General
Topic: New LCD-problem for me.
Replies: 6
Views: 2987

Thanks! Now it works perfect!

Great support from the mikroElektronika team!
by Hamilton
03 Aug 2006 00:35
Forum: mikroC General
Topic: New LCD-problem for me.
Replies: 6
Views: 2987

Tried that, without any changes at the result; got "UeW7" again.

But if I did 'TRISE = 0x00;' followed by 'TRISE.F4 = 0;', I got "UgW7". :) Strange...
by Hamilton
01 Aug 2006 19:55
Forum: mikroC General
Topic: New LCD-problem for me.
Replies: 6
Views: 2987

Yeah, I have tried that, but it didn't help at all.
by Hamilton
01 Aug 2006 15:01
Forum: mikroC General
Topic: New LCD-problem for me.
Replies: 6
Views: 2987

New LCD-problem for me.

Hello! This code doesn't work for me: void main() { TRISD = 0x00; Lcd_Config(&PORTD,2,3,1,4,5,7,6); Lcd_Cmd(Lcd_Clear); Lcd_Cmd(Lcd_CURSOR_OFF); Lcd_out(1, 1, "Test"); }//! I get "UeW7" on the LCD. But this code, with the same HW but in mBasic work great: program testplatta_lcdb main: TRISD = 0 Lcd_...
by Hamilton
11 Jul 2006 16:40
Forum: mikroC General
Topic: I2C in interrupt (plus two bonus questions)
Replies: 2
Views: 2390

0)You can't use library function both in main and interrupt. Yes, I noticed that. But why? What is it that limits it to only one of them? 1)Look at the mikroC Help->mikroCLangRef->Functions->IntroductionToFunctions You will find this example: void polar(double x, double y, double *r, double *fi) { ...
by Hamilton
11 Jul 2006 01:28
Forum: mikroC General
Topic: I2C in interrupt (plus two bonus questions)
Replies: 2
Views: 2390

I2C in interrupt (plus two bonus questions)

Hello, Why isn't it possible to use the Soft_i2c-library in an interrupt? I get "Reentrancy not allowed: function [Soft_I2C_Write] called in both main and interrupt threads" , as an error message. And the bonus questions! 1. I want something like this: void stuff_returned(char j) { result = 'do some...
by Hamilton
05 Jun 2006 01:52
Forum: mikroBasic General
Topic: 1 to 2, 2 to 4, 4 to 8, 8 to 16 & so on...
Replies: 10
Views: 3748

I have 'x = 1' outside the asm. But I don't know if I have declared x as a "global variable", but I have 'char x', is that it? :lol:

/H 8)
by Hamilton
04 Jun 2006 14:50
Forum: mikroBasic General
Topic: 1 to 2, 2 to 4, 4 to 8, 8 to 16 & so on...
Replies: 10
Views: 3748

Here I am, pulling the thread up again... :D I'm trying to use bcf STATUS, C rlf main_global_x, F btfsc STATUS, C rlf main_global_x, F and bcf STATUS, C rrf main_global_x, F btfsc STATUS, C rrf main_global_x, F in mC, but I get "not found: main_global_x", as an error. Since I don't know a single wor...
by Hamilton
17 Apr 2006 13:30
Forum: mikroBasic General
Topic: Current Wish List
Replies: 187
Views: 183205

Yes, some type of irDA library would be nice!
by Hamilton
10 Jan 2006 07:12
Forum: mikroC General
Topic: Lcd program doesn't work in mC, but in mBasic
Replies: 11
Views: 5640

Hmm, OK, srdjan. :?

Nice to know that I didn't do anything wrong. :D
by Hamilton
07 Jan 2006 22:58
Forum: mikroC General
Topic: Lcd program doesn't work in mC, but in mBasic
Replies: 11
Views: 5640

flygarn1: I'm not using EP3. I know that this is right since I have the exact same hardware as with the mBasic program, and since the Lcd8_Config has the same order (Ctrl,data,Rs,EN,Wr,D7...D0) in mBasic as in mC. But I am going to try and see if it works as it should if I have the LCD on others por...
by Hamilton
07 Jan 2006 17:13
Forum: mikroC General
Topic: Lcd program doesn't work in mC, but in mBasic
Replies: 11
Views: 5640

I tested that earlier, but it doesn't compile: "Division by zero", "';' expected but ) found" and 2x"Internal error".
by Hamilton
06 Jan 2006 22:29
Forum: mikroC General
Topic: Lcd program doesn't work in mC, but in mBasic
Replies: 11
Views: 5640

The program compiles, but the LCD shows nothing. Not even crap, it's just blank. :P

LVP: Off
WDT: Off
HS Osc.

I don't know if there is anything more to say... :? Just ask
by Hamilton
06 Jan 2006 21:36
Forum: mikroC General
Topic: Lcd program doesn't work in mC, but in mBasic
Replies: 11
Views: 5640

Lcd program doesn't work in mC, but in mBasic

Hello! This program, written in mBasic, works just as it should: // PIC16F877A @ 4MHz program nyttlcd main: TRISB = 0 TRISD = 0 Lcd8_Config(PORTD,PORTB,2,0,1,7,6,5,4,3,2,1,0) Lcd8_Cmd(Lcd_Cursor_Off) Lcd8_Cmd(Lcd_Clear) Lcd8_Out(1, 1, "BASIC!") End. This C-program, wich almost is a copy of the mBasi...

Go to advanced search