Search found 224 matches

by trust issues
04 Nov 2008 15:15
Forum: mikroBasic General
Topic: mega urgent need help
Replies: 4
Views: 1995

cllow2020 wrote:
Hi Xor, good info...

any info/DIY making a simple PCB router?
Making a simple PCB router? Whats that got to do with mikroBasic or this topic even? :?
by trust issues
29 Oct 2008 10:05
Forum: mikroBasic General
Topic: GM862-GPS -> PIC
Replies: 60
Views: 31011

I've seen complete GPS module interface code on this forum before, including all the AT commands so it's been done, just search hard :)
by trust issues
25 Oct 2008 23:50
Forum: mikroBasic General
Topic: Boolean type
Replies: 3
Views: 2277

Hi, I use boolean types, they work for me. Dim x as boolean x = True x = False if x then 'if x = true Just like any other basic. The NOT operator I've read about it not working sometimes, In all my applications it appears to have worked fine. I've done NOT of the type word before and it's fine. I th...
by trust issues
23 Oct 2008 10:29
Forum: mikroC General
Topic: Using PICSTART PLUS with mikroC
Replies: 2
Views: 2988

I have used the PIC Start Plus programmer for a while successfully with mikroBasic. Open up MPLAB, Select the Device (PIC), Select the Port the programmer is connected on, Enable the port, then import the hex code. Sorry don't remember exactly where all the options are to do this but it shouldn't ta...
by trust issues
22 Oct 2008 15:14
Forum: mikroBasic General
Topic: How to calculate slow RPM 0-500 max
Replies: 4
Views: 2328

The search function is your friend :wink:

http://www.mikroe.com/forum/viewtopic.php?t=14035
by trust issues
22 Oct 2008 11:16
Forum: mikroBasic General
Topic: bitwise not operator
Replies: 5
Views: 2319

Code: Select all

if Button(PORTB, 0, 25, 0) then       
  PORTB.4 = not PORTB.4 
end if

Code assume switch is attached to RB0, Debounces for 25ms and triggers on release of switch.
by trust issues
21 Oct 2008 12:45
Forum: mikroBasic General
Topic: Safe to exit from Interrupt procedure?
Replies: 3
Views: 2176

Thanks yo2lio, thats good news. Pretty much that, I just want to exit to save checking flags that I know won't be set. My code calls interrupts from left right and centre so am just saving collective time.
by trust issues
21 Oct 2008 12:01
Forum: mikroBasic General
Topic: Safe to exit from Interrupt procedure?
Replies: 3
Views: 2176

Safe to exit from Interrupt procedure?

If I have code like the following, If I use the exit command from within the ISR, will the context saving still be restored? sub procedure Interrupt if PIR1.TMR1IF = 1 then ClearBit(PIR1,TMR1IF) exit end if if INTCON.INT0IF = 1 then ClearBit(INTCON, INT0IF) exit end if if INTCON3.INT1IF = 1 then Cle...
by trust issues
17 Oct 2008 22:39
Forum: mikroBasic General
Topic: Totally newbie Questions
Replies: 13
Views: 4604

In mBasic, if you put say"15" with nothing before it, the compiler will assume it's a decimal number, if you put "$" before a number the compiler will assume a hex number, if you put "%" before a number then the compiler will assume a binary number. All of this can be found in the help file. PORTA =...
by trust issues
17 Oct 2008 16:44
Forum: mikroBasic General
Topic: Totally newbie Questions
Replies: 13
Views: 4604

The datasheet is very long but if you stick with PICs for a while, give it a couple of months and you realise you have just about read every single section. Start with the sections that are applicable to you. Start with the ADC just so you can understand how it can work, and how I showed you to swit...
by trust issues
17 Oct 2008 12:16
Forum: mikroBasic General
Topic: Interpic coms advice
Replies: 4
Views: 2150

I'd change PICs I'm afraid. The 16F688 has only 14 pins and has hardware USART. The 16F88 has 18 pins and has both hardware USART and SSP. Also I'd consider the 18F1320 which has a low pin count and all the hardware comms modules. I would not go down the software route, the modules are designed to d...
by trust issues
17 Oct 2008 11:00
Forum: mikroBasic General
Topic: Totally newbie Questions
Replies: 13
Views: 4604

No worries, not all of us have a degree in electronics :D First thing you should know about PICs is, most of the pins are multiplexed and can have several different functions. You as the programmer need to tell the pins what they are and aren't for. You have started this already by using the TRIS re...
by trust issues
02 Sep 2008 14:24
Forum: mikroBasic General
Topic: Two Wire supervised alarm loop and end of line resistor
Replies: 2
Views: 1604

Hi, Firstly, Do you need to know which switch has been triggered in the alarm loop? If no, then this would be a simple approach. Attach 5V to one side of all the switches. The other side of all the switches, connect together to 5V via a 10K pull-up resistor. Then using an external interrupt on your ...
by trust issues
01 Sep 2008 14:10
Forum: mikroC General
Topic: Divide large numbers in mikroC...?
Replies: 28
Views: 12534

Yeah, I was just going to say that. If you show us your source code, we might be able to see something else that might be the problem.
by trust issues
01 Sep 2008 09:57
Forum: mikroC General
Topic: Divide large numbers in mikroC...?
Replies: 28
Views: 12534

I really don't think there should be an issue with division. Look at this code in Basic http://www.mikroe.com/forum/viewtopic.php?t=14035 Specially these lines: RPMConvert as longword = 15000000 RPMVal = LongWord(RPMConvert div NewVal) ' calc RPM If this can work, which it does as I've done this as ...

Go to advanced search