Search found 18 matches

by 2brain
Thu Jun 11, 2015 4:24 am
Forum: Modules
Topic: GSM module SIM900
Replies: 3
Views: 5194

Re: GSM module SIM900

Hi Coccoliso, did you get anywhere with the SIM900? I'm about to put together a GPS tracker using the SIM808 which is very similar so I could do with a bit of a head start rather than starting from scratch.
by 2brain
Tue Mar 13, 2012 4:25 am
Forum: IDE
Topic: Changing PC
Replies: 0
Views: 5906

Changing PC

Hi, With the changes to the application regarding the removal of the dongle I'd like to find out what I need to do to change my PC and continue with updates etc. Had 2 dongles originally and have 2 passwords but only 1 seems to work. I did try to download an update to the ICC using my original regis...
by 2brain
Thu Jan 19, 2012 12:09 pm
Forum: General
Topic: Error[154] on END
Replies: 11
Views: 5736

I had never tried the 2 sample blinks before but I had an ASM error but different from yours when I did. By changing the device to 18F4520 I was able to compile but I didn't try running it. So its nothing to do with XP.
by 2brain
Thu Jan 19, 2012 11:49 am
Forum: IDE
Topic: Library Explorer plugin still work?
Replies: 26
Views: 19098

Under User I can see folders and their contents, bas file and then subs and functions. But I do get an error 'List Index out of bounds (2806).

I did notice that the 'All' filter only seems to apply the previously selected filter, so I can only get Subs and Functions or variables shown.
by 2brain
Fri Aug 19, 2011 2:19 am
Forum: Modules
Topic: Formatting USART.Write
Replies: 4
Views: 3008

I'm sure if you looked at the Help File you would understand what is really happening. You have 'padded out' your decimal down to a single character. If you replace the '1' with 5 you should see '01234'. If you want just your original number use: USART.Write (DectoStr(myvar)) If all else fails Read ...
by 2brain
Fri Jul 08, 2011 3:03 am
Forum: Compiler
Topic: Max size of constant array?
Replies: 2
Views: 2134

Max size of constant array?

I have always understood that the maximum size of a const array was 64k. I'm working with a file which produces a 38400 byte const. I'm using an 18LF46K22 (64K Flash) but I don't see what difference that should make. My problem is; If I use the full size of the constant the compiler attempts to comp...
by 2brain
Thu Feb 24, 2011 12:30 pm
Forum: Compiler
Topic: Not returning values properly, need help
Replies: 11
Views: 5607

I think perhaps there is some misunderstanding in your thinking. An Integer is a 16 bit number between -32768 and 32767 so it certainly is signed. ADInAsVolt is probably a better example by using a word value which can only be positive between 0 and 65535. I now see where the 286 comes from, so shou...
by 2brain
Tue Feb 22, 2011 5:43 am
Forum: Compiler
Topic: Not returning values properly, need help
Replies: 11
Views: 5607

Hi, I think there may be 2 things happening here, your Xaxis result is going negative, not because you want it to but because it's a 10bit value which is left justified by default, in a word(16 bits). And your programming for Xaxis function pushes the negative value even greater, I guess you never e...
by 2brain
Tue Feb 01, 2011 5:11 am
Forum: Modules
Topic: USART.READFLOAT problem
Replies: 5
Views: 3937

Any Help, really?

I haven't tried your code but 2 things occur to me; the brackets seem strange and you are only reading 4 bytes but trying to display 6.

Maybe try: USART.Write((FloatToStr(f1,3)),10,13)
by 2brain
Sun Nov 07, 2010 1:04 pm
Forum: Compiler
Topic: Structure in Module and choice in Program, again...
Replies: 12
Views: 10603

Module

The #option and # define are parts of the compiler preprocessor, so look at the Language Reference - preprocessor help.

If you look at the LCD.bas module you should see how they are used.
by 2brain
Sun Nov 07, 2010 3:18 am
Forum: Compiler
Topic: Structure in Module and choice in Program, again...
Replies: 12
Views: 10603

Structure in Module

You could try looking at the LCD.bas which supports the HD44780 and has #options and #defines for LCD lines. Not sure what the PCF8574(A) has to do with anything other than being an I/O expander, if you look in the LCD Help file you can see the display is wired for 4 data bits.
by 2brain
Mon Jun 07, 2010 1:02 pm
Forum: Modules
Topic: GLCD S1D13700 Is not displaying anything.
Replies: 36
Views: 35776

Sorry,
I forgot about the current, in the modules I've used it has been around 10mA but your spec sheet says yours needs only 5mA.
by 2brain
Mon Jun 07, 2010 1:00 pm
Forum: Modules
Topic: GLCD S1D13700 Is not displaying anything.
Replies: 36
Views: 35776

I pretty sure your pot is wired wrong in that it should be ground 0Volts at the opposite end to the 27volts and the wiper should go to the Vee.

I have used several similar LCD modules from the 240320H series and they have all worked with this configuration.
by 2brain
Sun Apr 18, 2010 9:12 am
Forum: Modules
Topic: SED1330f Graphic LCD Control
Replies: 6
Views: 5492

You didn't say whether you have a variable resistor (10K ohms) between Vo, 0v(ground) and your -20v. What code are you using as the basis of your application? Assuming you are using SE what GLCD driver are you using? Can you add some code to your next post? The more information you can give the easy...
by 2brain
Mon Apr 12, 2010 3:29 pm
Forum: Modules
Topic: SED1330f Graphic LCD Control
Replies: 6
Views: 5492

Skartalov,
does your LCD display have the optional internal DC/DC convertor or are you supplying -20. Without one or the other you not going to see anything. You also need the variable resistor connected from the -20 to Vo to adjust the contrast or you are not going to see anything either.