# Search:

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

Page 1 of 3 1

1. ## Thread: I need to Tx always three digits

by Alberto
Replies
9
Views
1,598

### Re: I need to Tx always three digits

Ok I did re-tested the suggested approch and discover that today they work! I should remember to avoid to do any testing late at night.

So I did delate the the first two blocks of my code and I...
2. ## Thread: I need to Tx always three digits

by Alberto
Replies
9
Views
1,598

### Re: I need to Tx always three digits

No! I do need to send also the leading zeros! Both shortcut suggested, do suppress leading zeros, so not usable.

Alberto
3. ## Thread: I need to Tx always three digits

by Alberto
Replies
9
Views
1,598

### Re: I need to Tx always three digits

OK I have verified the two alternative proposed. Neither of them work both send out the true number of digits, so for number from 0 to 9 I get only one digit with number from 10 to 99 two digits and...
4. ## Thread: I need to Tx always three digits

by Alberto
Replies
9
Views
1,598

### Re: I need to Tx always three digits

Thank you pedja089 for the tip. Definetly much better if it works! I will test it and let you know.

I will also test the following short code (if it works)

Hserout [str Pulse\43,dec3 DMY]
...
5. ## Thread: I need to Tx always three digits

by Alberto
Replies
9
Views
1,598

### I need to Tx always three digits

I am extracting a CRC from a string to send out serially. The resulting CRC can be any number from = 0 to 255 but I need to Tx always 3 digits so I came up with the following code. Is there any way...
6. ## Thread: Strange issue with SSR

by Alberto
Replies
4
Views
1,920

### Re: Strange issue with SSR

Scampy, these solid state switch come already equipped with a current limiting resistor already integrated inside the switch.

If you place a led with its resistor in parrallel to the ssr there is...
7. ## Thread: Goodbye

by Alberto
Replies
62
Views
8,869

### Re: Goodbye

Well, I have to say that while I was learning (and still learning) to code in python 3, I have found all the library in use in my code all well and professionally documented. I think python is the...
8. ## Thread: Goodbye

by Alberto
Replies
62
Views
8,869

### Re: Goodbye

Ioannis, taking into cosideration the economic and technical aspects of my decision, please read the technical features of raspberry pi 0 w

2835 SOC @ 1GHz
1GHz
512MB of RAM
On-board Wireless...
9. ## Thread: Goodbye

by Alberto
Replies
62
Views
8,869

### Re: Goodbye

Well boy, let me jump into this thread with my experience. As a pure hobbist, I moved to raspberry 3
And I have forgotten pbp3 and pics. Don't know why arduino never attracted me.
With raspberry...
10. ## Thread: Circumference of circle to many decimal places

by Alberto
Replies
10
Views
2,865

### Re: Circumference of circle to many decimal places

A circle does't have volume! Very likely you meant Area.

Alberto
11. ## Thread: Book of DT interrupts

by Alberto
Replies
3
Views
1,723

### Re: Book of DT interrupts

Thank you for the answer!

Alberto
12. ## Thread: Book of DT interrupts

by Alberto
Replies
3
Views
1,723

### Book of DT interrupts

Just two simple questions:

Is the book finished?

Why I cannot read it with my IPAD?

Alberto
13. ## Thread: Pic 18F26K40

by Alberto
Replies
17
Views
4,852

### Re: Pic 18F26K40

Thank you mgpmike for posting the code. That's just what I needed to understand how to use the 2nd uart (this is my first time)

I noted that you define the uarts prior to include the DT interrupt....
14. ## Thread: Pic 18F26K40

by Alberto
Replies
17
Views
4,852

### Re: Pic 18F26K40

Thank you for pointing out that 18f26k22 is still in production! This will save me the money and trouble to update my pbp3 ( you never know how it will end up the update!). Additionally, the suggeted...
15. ## Thread: Pic 18F26K40

by Alberto
Replies
17
Views
4,852

### Re: Pic 18F26K40

Thank all for the quick reply! I will check @ melabs site how to update my pbp3. You didn't mention the U2 programmer. Does it upgrade automatically with the pbp3 upgrade?

@ Dave:

I did...
16. ## Thread: Pic 18F26K40

by Alberto
Replies
17
Views
4,852

### Pic 18F26K40

I have in mind a new project where I need two uarts com ports, so I did search microchip site and found the pic 18F26k40 to suite my need. As a second step I did check if my pbp3 (ver 3.09.4) was...
17. ## Thread: Need help with LAT instruction

by Alberto
Replies
10
Views
2,827

### Re: Need help with LAT instruction

Tank you George for the additional input. Yes read and write to LAT register seems the correct way to go. I did change the original alias from (led var portA.5) to (led var LATA.5) and everything...
18. ## Thread: Need help with LAT instruction

by Alberto
Replies
10
Views
2,827

### Re: Need help with LAT instruction

Ok problem solved!

It was the ansel register that was not set properly so portA.5 was set as analog and hence not responding to a digital command.

Thank you again.

Alberto
19. ## Thread: Need help with LAT instruction

by Alberto
Replies
10
Views
2,827

### Re: Need help with LAT instruction

The fact is that I am a litlle lost with this LAT register!

I have a blinking led connected to portA.5 and with 18f2620 I used the alias : Led var portA.5, then...
20. ## Thread: Need help with LAT instruction

by Alberto
Replies
10
Views
2,827

### Need help with LAT instruction

I have recently changed mcu for memory space. I moved from 18f2620 to 18f26k20. But the new pic needs the LAT instruction to work properly.

Now I have several alias like:

Bit_Out0. Var portA.6...
21. ## Thread: How to update meCONFIG

by Alberto
Replies
5
Views
3,010

### Re: How to update meCONFIG

Yes I have pbp3 golden edition and the cip is listed and found. The program meCONFIG is an important tool (at least for me) and it is a pity not maintaining it! I have read several thread where Mr...
22. ## Thread: How to update meCONFIG

by Alberto
Replies
5
Views
3,010

### How to update meCONFIG

I did purchase some pic 18F1330 for a new project I have in mind. Unfortunatly I discover that this device is not present into my meCONFIG program. I did check at Melab site but could not find any...
23. ## Thread: Is it possible To change baud rate at runtime?

by Alberto
Replies
2
Views
1,347

### Re: Is it possible To change baud rate at runtime?

Thank you Henrik, very kind of you.

Alberto
24. ## Thread: Is it possible To change baud rate at runtime?

by Alberto
Replies
2
Views
1,347

### Is it possible To change baud rate at runtime?

I need to change The baud rate from 9600 to 115200 and then back to 9600. I did try with define but PBP3 does'nt like it and gives error at compiling. Is there a way To do the baud Switching from...
25. ## Thread: Is it allowed to change pin reference within a subroutine?

by Alberto
Replies
18
Views
3,866

### Re: Is it allowed to change pin reference within a subroutine?

Thank you Dave for the code posted.

At the late, I should start playing with the code next Friday. I am sure I will came back with more question on this subject!

By now thank you again for your...
Results 1 to 25 of 65
Page 1 of 3 1