Search found 16 matches
- 27 Oct 2010 11:21
- Forum: Website & Forums General Discussion
- Topic: Questions using 16F688 port pins and mikroBasic (not Pro).
- Replies: 0
- Views: 1515
Questions using 16F688 port pins and mikroBasic (not Pro).
1.) I want to output 5-bit data i = 0...31 (dim i as byte?) on RC[1..0] and RA[2..0] in the order MSB..LSB. RC1 and RC2 are enable (low) signals for two 4-to-16 demultiplexers driving one of 32 LEDs at a time. It should be: RC[2] = not(RC[1]). The 6 bits would have to be put or changed on the port p...
- 22 Oct 2010 09:00
- Forum: Website & Forums General Discussion
- Topic: Reading data from RS-232 and diplaying on analog instrument.
- Replies: 5
- Views: 3171
Re: Reading data from RS-232 and diplaying on analog instrum
Hello Karan,
Many thanks! - I should have read the datasheet myself prior to asking.
Right you are:
INTCON.GIE = 0
INTCON.PEIE = 0
Cheers!
Many thanks! - I should have read the datasheet myself prior to asking.
Right you are:
INTCON.GIE = 0
INTCON.PEIE = 0
Cheers!
- 21 Oct 2010 23:54
- Forum: Website & Forums General Discussion
- Topic: Reading data from RS-232 and diplaying on analog instrument.
- Replies: 5
- Views: 3171
Re: Reading data from RS-232 and diplaying on analog instrum
Thanks for the helpful suggestion. I am using mikroBasic (not Pro) and have found the Software SPI and Software UART library routines. According to the mBasic User's Manual, the use of Software UART requires to disable interrupts (PIC18F2550). How do I do that? - Thanks in advance.
- 21 Oct 2010 14:41
- Forum: Website & Forums General Discussion
- Topic: Reading data from RS-232 and diplaying on analog instrument.
- Replies: 5
- Views: 3171
Reading data from RS-232 and diplaying on analog instrument.
I read data from a Ten-Tec Jupiter (HAM radio transceiver) by sending "?S" with a Terminal program to the RS-232 port. The radio sends back a 4-byte ASCII-string, e.g. "S0AE4". I would like to build a circuit to read the S-value repetitively and have it diplayed on an analog voltmeter. S-value range...
- 24 May 2010 21:26
- Forum: mikroBasic General
- Topic: StrCutChr
- Replies: 0
- Views: 1318
StrCutChr
Can someone explain this please? Start quotation: sub procedure StrCutChr(din byref inst as string[4095], dim ch as byte) reemoves all characters equal ch from front of the string End quotation. Does it mean that, if for instance inst = "ABCDEFGH" ch = 2 then StrCutChr(inst, 2) would be "ABCDEF" or ...
- 24 May 2010 00:22
- Forum: mikroBasic General
- Topic: LongWord2Str
- Replies: 5
- Views: 2954
Re: LongWord2Str
Dear zan,
Now I got it. - Thank you very much for your help!
Now I got it. - Thank you very much for your help!
- 23 May 2010 21:37
- Forum: mikroBasic General
- Topic: LongWord2Str
- Replies: 5
- Views: 2954
Re: LongWord2Str
Hello zan, Thank you for your response. I already had those files. What I would like to know is how to use the functions and procedures when writing a program. I think I'd have to have the actual code for any of those routines with the last line in the code being "end" terminating the routine. Where...
- 23 May 2010 18:21
- Forum: mikroBasic General
- Topic: LongWord2Str
- Replies: 5
- Views: 2954
LongWord2Str
I read "MB Additional String Util Libraries.pdf" by YO2LIO and also found in String_Utils.pbas this: '- Sub Procedure LongWord2Str(Dim data_in as LongWord, Dim Byref data_Str as String[10]) ' Convert LongWord value to String, lenght of String is Variable from 1 to 10. ' Ex. LongWord2Str(11645, data1...
- 18 May 2010 23:20
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
Re: HEX2DEC
That's exactly what I was looking for. Many thanks for your help.
- 17 May 2010 23:06
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
Re: HEX2DEC
It is string, like I read with HyperTerminal from the RS-232 port of a hardware device.
Example: I send "?S" followed by CR. The device sends back for instance "S13C9".
In this example I need to know the decimal equivalent of 0x13C9.
Thanks for your patience.
Example: I send "?S" followed by CR. The device sends back for instance "S13C9".
In this example I need to know the decimal equivalent of 0x13C9.
Thanks for your patience.
- 17 May 2010 20:39
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
Re: HEX2DEC
Sorry, I made a mistake! ABCh = 10*256 + 11*16 + 12 = 2748.
- 17 May 2010 20:34
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
Re: HEX2DEC
Is it really soooo difficult to understand? - I do need to convert hex to decimal. I need the decimal numbers and not a compiler. Example: ABCh = 10*256 + 11*16 + 12*1 = 2743. Regards!
- 17 May 2010 18:54
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
Re: HEX2DEC
I am not looking for WordToStr, but HexToDec, if there is such a thing.
In other words, I need to convert hexadecimal numbers in the range 0..FFFFh to their decimal equivalent.
Example: 0A5Dh = 2653.
In other words, I need to convert hexadecimal numbers in the range 0..FFFFh to their decimal equivalent.
Example: 0A5Dh = 2653.
- 17 May 2010 16:51
- Forum: mikroBasic General
- Topic: HEX2DEC
- Replies: 9
- Views: 4114
HEX2DEC
I need a subroutine to convert HEX (0..FFFFh) into decimal. I want to use a PIC18F2550. Help is welcome, thanks in advance.
- 11 Nov 2008 12:32
- Forum: mikroBasic Wish List
- Topic: Div, MOD question
- Replies: 2
- Views: 9232
Re: Div, MOD question
Let X =5 and B = 2
Sorry about the mistake in my previous post.
I ment to say
Y = 2
Sorry about the mistake in my previous post.
I ment to say
Y = 2