Search found 225 matches

by Ron
Tue Aug 11, 2009 3:40 am
Forum: General / Misc
Topic: splitting 1 byte into 2 bytes
Replies: 2
Views: 2921

splitting 1 byte into 2 bytes

Hi,

I want to read analog input 10 bit, 0 - 1023. I need to separate the high nibble from the low nibble and and put each into it's own byte.

How would I do this?

Thanks

Ron
by Ron
Sun Aug 09, 2009 12:51 am
Forum: Components (Other)
Topic: Analog Component
Replies: 1
Views: 6828

Analog Component

Hi, I have written a program that allows me to use certain pins in different ways based on a parameter setting. I use an RJ12 connector (thanks Jim H.) to connect 4 signal pins, plus 5V & 0V to an add on board. I have made the add on boards in several different configurations. My question is how doe...
by Ron
Thu Aug 06, 2009 5:56 pm
Forum: Components (Comms)
Topic: RS232 Setup for new registers
Replies: 5
Views: 10002

Re: RS232 Setup for new registers

Hi Ben, Thanks for the info. Just a note, the 16F register is called baudctl, 18F is baudcon. The calculation is not this issue when i brought this up. What I am hoping for is a component that can be set up for any of the data sheet rates by having the ability to do it with in the component. I am ho...
by Ron
Wed Aug 05, 2009 5:42 pm
Forum: Components (Comms)
Topic: RS232 Setup for new registers
Replies: 5
Views: 10002

Re: RS232 Setup for new registers

Hi Ben, Is 2.86% error close enough? I do not know, I will read up on RS232, another thing to learn about. I simply read part of the data sheet and found much lower % of error, which in the mind of a newbie is better. As far as the request, I simply thought that keeping components up to date with th...
by Ron
Wed Aug 05, 2009 1:34 pm
Forum: Components (Comms)
Topic: RS232 Setup for new registers
Replies: 5
Views: 10002

RS232 Setup for new registers

Hi, Could you please provide examples on how to configure all the registers (in a "C" block) to allow 115K2 baud for the following 2 newer PIC chips. 16F887 - 20MHz, Page 166, SYNC = 0, BRGH = 1, BRG16 = 1, SPBRG = 42 section which produces a .94% error 18F4620 - 40MHZ, Page 208, SYNC = 0, BRGH = 1,...
by Ron
Thu Jul 30, 2009 12:53 am
Forum: General / Misc
Topic: MCP23017 schematic
Replies: 0
Views: 2853

MCP23017 schematic

Hi, I want to connect 2 of these I/O expansion boards to 16F887 and 18F4620. Both will be on the same slave PCB from the main pic and I will use RJ12 to connect the main PIC board to the expansion board. Th RJ12 cables will be about 6 inches long. I will have 5V coming from the main PIC to power the...
by Ron
Mon Jul 27, 2009 2:34 pm
Forum: Components (Comms)
Topic: RS232 Baud Rate %Error
Replies: 8
Views: 14332

Re: RS232 Baud Rate %Error

Hi Ben, I would like the powers that be to consider upgrading the RS232 component. I am not sure if it is possible given the fact that newer pics have several registers to control baud rate ond old ones only have 2. It would be nice if we can set the necessay bits (SYNC, BRG16, BRGH) and registers (...
by Ron
Fri Jul 10, 2009 4:10 pm
Forum: Components (Comms)
Topic: RS232 Baud Rate %Error
Replies: 8
Views: 14332

Re: RS232 Baud Rate %Error

Hi Ben, I want to run at 115200 baud rate. 20MHz 16F887 (BAUDCTL) (18F4620 BAUDCON) SYNC = 0 and BRGH = 1, BRG16 = 0, SPBRG = d10 --> -1.36% SYNC = 0, BRGH = 0, and BRG16 = 1, SPBRG = d10 --> -1.36% I am using SYNC = 0, BRGH = 1, BRGH16 = 1, SPBRG = d42 --> .94%. Flowcode reports a 50% higher error ...
by Ron
Thu Jul 09, 2009 7:24 pm
Forum: Components (Comms)
Topic: RS232 Baud Rate %Error
Replies: 8
Views: 14332

Re: RS232 Baud Rate %Error

Hi Guys, Regarding the RS-232 component. I looked at the 16F88 data sheet and this PIC only has 2 registers (Ben made me aware of this) for controlling Baud Rates. TXSTA (SYNC & BRGH bits) and SPBRG Newer PICs 16F887/18F4620 have 3 registers to control Baud rates. TXSTA (SYNC & BRGH), SPBRG and BAUD...
by Ron
Wed Jul 08, 2009 6:20 pm
Forum: Flowcode V2 & V3
Topic: Online Tutorial - PICkit 2 programmer Latest Software
Replies: 5
Views: 5023

Re: Online Tutorial - PICkit 2 programmer Latest Software

Hello Medelec35,

Thank you for the PM, I appreciate it.

I have very limited time, do you think it would be of any value if I did short tutorials on many of the basic commands in Flowcode V3?

Thank you,

Ron
by Ron
Fri May 29, 2009 4:11 pm
Forum: Flowcode V2 & V3
Topic: USB Problems with 18F2450, 18F4450, 18F14K50
Replies: 5
Views: 5040

Re: USB Problems with 18F2450, 18F4450, 18F14K50

Hi Ben,

Does this problem affect the USB component in Flowocde? I have not looked into the USB yet, how many other PIC chips have USB built in?

Thanks

Ron
by Ron
Fri May 29, 2009 2:46 pm
Forum: Components (Comms)
Topic: RS232 Baud Rate %Error
Replies: 8
Views: 14332

Re: RS232 Baud Rate %Error

Hi Ben, The 16F88x has a BAUDCTL register, bit 3 is BRG16, this is set to 1 to achieve higher baud rates. The 18F2620 has a BAUDCON register, bit 3 is BRG16, this is set to 1 to achieve higher baud rates. At least this is what I think I am reading in the datasheets, with each new adventure comes unc...
by Ron
Sun May 24, 2009 11:26 pm
Forum: Components (Comms)
Topic: RS232 Baud Rate %Error
Replies: 8
Views: 14332

RS232 Baud Rate %Error

Hi, I want to set the baud rate to 115200 using the 18.432MHz crystal. Flowcode reports 100% error. I think this is because you only take into account one possibility for the SYNC, BRG16 and SPBRG registers. Can I set these three registers up in a "C" block to support 115200 at 18.432, and will Flow...
by Ron
Sat May 23, 2009 8:16 pm
Forum: Flowcode V2 & V3
Topic: Resonators or Crystals
Replies: 6
Views: 5498

Re: Resonators or Crystals

Hi Ben,

How accurate are the internal OSC on the newer PICs, 16F887, 18F2620? I could not locate anything regarding this ini the datasheets.

Thanks

Ron
by Ron
Fri May 22, 2009 11:40 pm
Forum: General / Misc
Topic: Write speed to flash
Replies: 6
Views: 5112

Re: Write speed to flash

Hi Ben, I am running 16F887 at 20MHz. I have never used any other bootloader, am I right in thinking it is taking to long to write this small a program? If I have the baud rate set at 115.2kbps can you give me an estimate of how long it should take to write a 2.8k program to a pic. I need a bench ma...
by Ron
Thu May 21, 2009 7:03 pm
Forum: General / Misc
Topic: Write speed to flash
Replies: 6
Views: 5112

Re: Write speed to flash

Hi Ben, I have used a serial port monitor to try to see if my windows app is the bottleneck in downloading a program to a pic via serial port. The windows program does not appear to be the issue. I get a .0156 second time delay when sending data to the PIC and receiving a responce. This is the same ...
by Ron
Tue May 19, 2009 4:05 pm
Forum: General / Misc
Topic: Write speed to flash
Replies: 6
Views: 5112

Re: Write speed to flash

Hi, The code runs fine on the PIC, best as I can tell. If I try the PC app set for 9600 and PIC for 115.2k they do not connect (which is what I would expect), the same is true for 115.2 PC App and 9600 PIC. When both are set for 9600 everything appears to run fine, same at 115.2K. I am not a C# prog...
by Ron
Tue May 19, 2009 12:33 pm
Forum: General / Misc
Topic: Write speed to flash
Replies: 6
Views: 5112

Write speed to flash

Hi, I am using a bootloader and when downloading a small flowcode program (blink a single LED on/off) using loop block it takes almost 5 seconds at 9600 baud. I have the source code and recompiled PC application and Bootloader for 115.2K . It still takes the same amount of time to download the small...
by Ron
Tue May 19, 2009 12:05 pm
Forum: Flowcode V2 & V3
Topic: Resonators or Crystals
Replies: 6
Views: 5498

Re: Resonators or Crystals

Hi,

I will check to see if I can get this cap in a 22pf version.

Thank you,

Ron
by Ron
Sun May 17, 2009 9:36 am
Forum: Flowcode V2 & V3
Topic: Resonators or Crystals
Replies: 6
Views: 5498

Re: Resonators or Crystals

Hi, OK, so I want to use a crystal, what type of caps are required? Will these work http://www.mouser.com/Search/Refine.aspx?Keyword=140-50N5-180J-TB-RC The crystals I want to user are http://www.mouser.com/Search/ProductDetail.aspx?qs=sGAEpiMZZMtg8rPr%252bGIKJmkxQqIPZPL8kj%2ft9Z2EojU%3d Thanks Ron
by Ron
Fri May 15, 2009 9:38 pm
Forum: Flowcode V2 & V3
Topic: Flags
Replies: 3
Views: 3516

Re: Flags

Hi,

I am not sure but check out this post, I think I asked same question some time ago in a slightly different way.

http://www.matrixmultimedia.com/mmforum ... f=5&t=4209

Ron
by Ron
Sat May 09, 2009 12:07 am
Forum: Flowcode V2 & V3
Topic: Resonators or Crystals
Replies: 6
Views: 5498

Resonators or Crystals

Hi,

I have designed a small PIC board and have chosen a resonator with built in CAPs.

Here is the resonator I have chosen to use, I think the data sheet states +/- .3% Freq Stability

http://www.abracon.com/Resonators/awcr.pdf

Are typical crystals more accurate?

Thanks

Ron
by Ron
Mon Apr 20, 2009 4:57 pm
Forum: Flowcode V2 & V3
Topic: Online Tutorial - PICkit 2 programmer Latest Software
Replies: 5
Views: 5023

Online Tutorial - PICkit 2 programmer Latest Software

Hi, Working with Steve I have gotten the latest version of the PK2CMD (PICkit 2) software working with Flowcode. I have a Flash based tutorial on my web site for those of you that are interested. It is best viewed at a resolution of 1280 x 1024 (or larger). Topics covered include: Getting the latest...
by Ron
Mon Apr 06, 2009 6:09 pm
Forum: Flowcode V2 & V3
Topic: 16F887 and RE3
Replies: 3
Views: 2878

Re: 16F887 and RE3

Hi Steve, I am more interested in V4 right now. I can live without the input for now. If it every becomes an issue (16F887, 18F4620). One question though. If the pin is a general purpose INPUT, reset, Vpp, how could it work as an OUTPUT? I appreciate the offer, this type of thing sets everyone at Ma...
by Ron
Sat Apr 04, 2009 6:56 pm
Forum: Flowcode V2 & V3
Topic: 16F887 and RE3
Replies: 3
Views: 2878

16F887 and RE3

Hi, I want to use RE3 as an I/O pint, not reset. Flowcode does not allow me to select RE3, is this a bug or a planned limitation? Is there a way around this? If this Is a planned limitation then there was a reason, what is that reason???? Just trying to learn from those with a great deal more experi...