Search Results - MEL PICBASIC Forum

# Search:

Type: Posts; User: pedja089; Keyword(s):

Page 1 of 4 1

1. ## Thread: Looking for info - functions built-into PBP3 for controlling HD44780 displays?

by pedja089
Replies
3
Views
4

### Re: Looking for info - functions built-into PBP3 for controlling HD44780 displays?

Yes there is file. You can edit it. There is example on forum cale LCD-AnyPIn, or something like that. But always have backup if you edit it.
You can find it in few places.
in PBP3 instalation...

by pedja089
Replies
4
Views
1,224

### Re: exponent math

Just create lookup table, with linear interpolation.
I found it to be simplest and fastest way.
I successfully created this function https://en.wikipedia.org/wiki/Mean_kinetic_temperature (second...
3. ## Thread: Determining variable length (number of digits) possible?

by pedja089
Replies
14
Views
956

### Re: Determining variable length (number of digits) possible?

Look up DIG. It isolates single digit, as you need it, without IF...
4. ## Thread: Current sensor output modification. PIC or opamp or something else?

by pedja089
Replies
9
Views
913

### Re: Current sensor output modification. PIC or opamp or something else?

Sorry for that...
5. ## Thread: Current sensor output modification. PIC or opamp or something else?

by pedja089
Replies
9
Views
913

### Re: Current sensor output modification. PIC or opamp or something else?

You got most of circuit. I added one more buffer, so input to rest of circuit is low impedance. If you know your sensor output, you can omit first buffer.
Second OPAMP create comparator with...
6. ## Thread: Current sensor output modification. PIC or opamp or something else?

by pedja089
Replies
9
Views
913

### Re: Current sensor output modification. PIC or opamp or something else?

If you use your signal for regulation of something, ADC/DAC solution act like first order hold
https://en.wikipedia.org/wiki/First-order_hold
And it can cause instability in regulation.
So my...
7. ## Thread: Can we have multiple 1-wire devices on single pin?

by pedja089
Replies
18
Views
2,550

### Re: Can we have multiple 1-wire devices on single pin?

You can read address, without searching, if it is only one device present at bus. Just write command \$33, and collect next 64bit. Do this 3 time, one for each sensor.
Connect all DS to bus.
Write...
8. ## Thread: Can we have multiple 1-wire devices on single pin?

by pedja089
Replies
18
Views
2,550

### Re: Can we have multiple 1-wire devices on single pin?

You just add one device at time. And search after you add one.
9. ## Thread: Bluetooth HC-05 Question

by pedja089
Replies
2
Views
603

### Re: Bluetooth HC-05 Question

Look at command set:
Be aware that there is several fw for HC-05. I have build programmer for them that worked on...
10. ## Thread: IR temp sensor

by pedja089
Replies
5
Views
824

### Re: IR temp sensor

Can you display raw register data?
So you can compare result of your calculation with register value. Maybe sensor have some drift issues.
11. ## Thread: How to trap incoming Calls/SMS when no RING pin is available

by pedja089
Replies
2
Views
1,631

### Re: How to trap incoming Calls/SMS when no RING pin is available

That would be most reliable way to go.
Also you can call every ms something like this:

Hserin 2,NoData,[WAIT(13,10),STR RecBuffer\100\10]
This will capture date betwen two CRLF, and modem send...
12. ## Thread: 2G, 3G and 4G - how do I determine what my module is capable of?

by pedja089
Replies
5
Views
1,141

### Re: 2G, 3G and 4G - how do I determine what my module is capable of?

It support GSM and GPRS. So no 3 or 4g.
13. ## Thread: jumping out of a gosub reminder

by pedja089
Replies
17
Views
2,714

### Re: jumping out of a gosub reminder

You could just goto error handler if you found error. Then make just one exit of it, and exit with @ Reset.
This will reset PIC and clear stack. Same way as if you power off then on.
14. ## Thread: jumping out of a gosub reminder

by pedja089
Replies
17
Views
2,714

### Re: jumping out of a gosub reminder

When compiler gosub, it will always return. Unless you use ISR to modify stack, which I wouldn't recommend.
15. ## Thread: jumping out of a gosub reminder

by pedja089
Replies
17
Views
2,714

### Re: jumping out of a gosub reminder

Not necessarlly, Lot of hi level programing language have this already implemented. eg in .net: On Error GoTo, Try, catch, etc...
Same could be done for HW. If something external happened then you...
16. ## Thread: jumping out of a gosub reminder

by pedja089
Replies
17
Views
2,714

### Re: jumping out of a gosub reminder

But if I understand correctly he want to goto and never return.
So you need to pop stack to prevent overflow.
17. ## Thread: 40466 LCD help

by pedja089
Replies
3
Views
875

### Re: 40466 LCD help

Maybe this will help
8797
18. ## Thread: jumping out of a gosub reminder

by pedja089
Replies
17
Views
2,714

### Re: jumping out of a gosub reminder

I had similar ideas, but give up on them. I use something like this:

Gosub xx : If err=1 then goto yy

XX:
if something to triger going to err sub then
err=1 ' goto in different sub after...
19. ## Thread: Need to drive 4 rgb leds, but have only 1 pin available...

by pedja089
Replies
11
Views
3,672

### Re: Need to drive 4 rgb leds, but have only 1 pin available...

You missed the point...
Use same RC circuit to drive APA LED. Apa have Data and Clock pin and you have one pin free.
20. ## Thread: Need to drive 4 rgb leds, but have only 1 pin available...

by pedja089
Replies
11
Views
3,672

### Re: Need to drive 4 rgb leds, but have only 1 pin available...

Not necessary, you can create clock and data using only one pin.
eg
https://www.romanblack.com/shift1.htm
21. ## Thread: Array error in Hserin

by pedja089
Replies
21
Views
2,733

### Re: Array error in Hserin

You need _ before PBP name, when used in ASM.

by pedja089
Replies
12
Views
4,618

### Re: Ability to pay per MCU License.

Then declare variable in BANKA. And use it.
I have one of best compilers for pic. It iscalled PicBasic Pro :)
And pbp have very good optimization. And wouln't benefit in program size from adding...

by pedja089
Replies
12
Views
4,618

### Re: Ability to pay per MCU License.

I use TmpB1... TmpW1... TmpL1 etc...
Passing values to sub cant make nothing for better code efficiently.
It can make it just look better. Behind curtain, ASM code is same, or worse if compiler...

by pedja089
Replies
4
Views
2,168

It can be done with #IF ....
Look manual for conditional compile in manual.
I would suggest to you that you download data using serial port, or similar. So you don't have need to load multiple hex...
25. ## Thread: 10-Bit PWM using PIC16F1509

by pedja089
Replies
19
Views
8,550

### Re: 10-Bit PWM using PIC16F1509

Take look at SPWM from DT. Or better MIBAM.
Results 1 to 25 of 100
Page 1 of 4 1