Home |
Search |
Today's Posts |
|
Electronic Schematics (alt.binaries.schematics.electronic) A place to show and share your electronics schematic drawings. |
Reply |
|
|
LinkBack | Thread Tools | Display Modes |
#41
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
On Mon, 23 Jul 2007 16:58:31 +1000, Clifford Heath
wrote: Joerg wrote: Or get a 16-bitter like the MSP430 with a HW multiplier. That ought to do it. The MSP430 has slow pin-toggle instructions, which bit me when trying to do high-speed One-wire(tm) interface. Four cycles of a clock for each half-cycle on the output :-(. Had to raise the internal clock speed (a lot). Clifford Heath. You can do stuff like this: pre-load registers with patterns and then just slam them into the ports. See the last part of this 68K code... .SBTTL . UPOKE : PROGRAM AN FPGA ; THIS IS ACTUALLY THE CODE PROTOTYPE; THE REAL ROUTINE IS ; CACHED AND EXECUTED IN CPU RAM. ; THIS VERSION UNPACKS RLL:0 CONFIGS FURNISHED BY THE BRICK /RLL SWITCH ; SINCE IRQ'S AREN'T RUNNING YET, WE OWN PORT E. ; CALL THIS WITH A0 POINTING TO XILINX CONFIG DATA START ; OICDSMMM ; SDO SDI SCLK DS SYSR- MUX MUX MUX UPOKE: MOVE.B # 00000000b, D1 ; D1 : CLK 0, DATA 0 MOVE.B # 00100000b, D2 ; D2 : CLK 1, DATA 0 MOVE.B # 10000000b, D3 ; D3 : CLK 0, DATA 1 MOVE.B # 10100000b, D4 ; D4 : CLK 1, DATA 1 MOVEA.W # PORTE, A2 ; AIM AT THE FPGA I/O PORT MOVEA.W # SWSR, A5 ; AND MAKE POINTER TO THE WATCHDOG XBYTE: MOVE.B (A0)+, D0 ; GET A BYTE FROM THE CONFIG FILE. BEQ.S XNULL ; DETOUR FOR 0 BYTE ; THIS IS AN ORDINARY, NON-ZERO CONFIG BYTE... MOVEQ.L # 8-1, D7 ; LET'S DO 8 BITS HERE XBIT: ASL.B # 1, D0 ; TEST A BIT: BCC.S XLO ; SKIP FOR DATA LOW XHI: MOVE.B D3, (A2) ; CLOCK LOW, DATA HIGH MOVE.B D4, (A2) ; CLOCK HIGH, DATA HIGH DBF D7, XBIT ; FINISH THE BYTE MOVE.B # 055h, (A5) ; SERVICE THE WATCHDOG MOVE.B # 0AAh, (A5) ; TIMER, SORTA RANDOMLY BRA.S XBYTE XLO: MOVE.B D1, (A2) ; CLOCK LOW, DATA LOW MOVE.B D2, (A2) ; CLOCK HIGH, DATA LOW DBF D7, XBIT ; FINISH THE BYTE BRA.S XBYTE ; HERE, WE HAVE A ZERO BYTE XNULL: MOVE.B (A0)+, D7 ; NEXT BYTE IS REPEAT COUNT BEQ.S XBAIL ; DOUBLE-0 IS END OF FILE! ; IT'S A RUN, AND D0 IS THE RUN LENGTH. BANG OUT EIGHT ZERO BITS: ZRUN: MOVE.B D1, (A2) ; 1 CLOCK LOW, DATA LOW MOVE.B D2, (A2) ; CLOCK HIGH, DATA LOW MOVE.B D1, (A2) ; 2 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 3 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 4 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 5 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 6 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 7 MOVE.B D2, (A2) ; MOVE.B D1, (A2) ; 8 MOVE.B D2, (A2) ; SUBQ.B # 1, D7 ; DING OUR RUN-LENGTH COUNTER BNE.S ZRUN ; AND FINISH THE RUN BRA.S XBYTE XBAIL: CLR.B (A2) ; LEAVE WITH ALL PORT E BITS LOW! RTS UPSIZE = {$ - UPOKE} / 2 ; SIZE OF UPOKE ROUTINE, IN WORDS |
#42
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
"Chuck Harris" wrote in message news Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. I did that one as a prototype for the US ARMY. It was a little brutal on the LiION batteries, as 8 bits doesn't give you a whole lot of resolution on your CV/CI regulator. -Chuck Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. |
#43
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Lord Garth wrote:
"Chuck Harris" wrote in message news Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Yes! pant, pant, drool ... But only if that for sure doesn't get you into hot water. I did that one as a prototype for the US ARMY. It was a little brutal on the LiION batteries, as 8 bits doesn't give you a whole lot of resolution on your CV/CI regulator. PWM resolution is another concern. Not so much for a charger but for a regular switcher. Otherwise it'll go into a "burpy" mode if, for example, you want to run the PWM at 500kHz but the timer clock can't be more than 10MHz or so. -Chuck Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. Right now all (!) my power sticks for the hand tools are dead. Here goes another $60 for a capacity the equivalent of $5 worth of AA-NiMH. -- Regards, Joerg http://www.analogconsultants.com |
#44
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
"Joerg" wrote in message t... Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. Right now all (!) my power sticks for the hand tools are dead. Here goes another $60 for a capacity the equivalent of $5 worth of AA-NiMH. Then there seems to be the upgrade game. I can't find 12V packs for my Ryobi drill unless I buy another drill. I can get 18V packs however. These will become the source for the required sub C cells as they are most cost effective. Unknown is the cost to get them spot welded into the required configuration. It just MIGHT be cheaper to buy a new drill with two battery packs and sell the old one for a small offset. |
#45
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Joerg wrote:
Lord Garth wrote: "Chuck Harris" wrote in message news Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Yes! pant, pant, drool ... But only if that for sure doesn't get you into hot water. No problem there, I own the design, and the company. I did that one as a prototype for the US ARMY. It was a little brutal on the LiION batteries, as 8 bits doesn't give you a whole lot of resolution on your CV/CI regulator. PWM resolution is another concern. Not so much for a charger but for a regular switcher. Otherwise it'll go into a "burpy" mode if, for example, you want to run the PWM at 500kHz but the timer clock can't be more than 10MHz or so. The resolution is a problem for the feedback loop. I measure the supply voltage using the PIC's 8 bit ADC with the help of a stupid simple range selector. The charger had to handle batteries from a couple of volts up to 28V. The LiION batteries need the voltage held to a fairly close value, so I adjusted the ADC's reference just for them. NiCAD's, and NiMH are more interested in relative voltage levels, so they aren't at all critical. -Chuck Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. There is something to be said for using standardized power sources. LiIon are available in the usual A, AA, AAA sizes as are NiCads. -Chuck |
#46
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
"Chuck Harris" wrote in message ... Joerg wrote: Lord Garth wrote: "Chuck Harris" wrote in message news Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Yes! pant, pant, drool ... But only if that for sure doesn't get you into hot water. No problem there, I own the design, and the company. I did that one as a prototype for the US ARMY. It was a little brutal on the LiION batteries, as 8 bits doesn't give you a whole lot of resolution on your CV/CI regulator. PWM resolution is another concern. Not so much for a charger but for a regular switcher. Otherwise it'll go into a "burpy" mode if, for example, you want to run the PWM at 500kHz but the timer clock can't be more than 10MHz or so. The resolution is a problem for the feedback loop. I measure the supply voltage using the PIC's 8 bit ADC with the help of a stupid simple range selector. The charger had to handle batteries from a couple of volts up to 28V. The LiION batteries need the voltage held to a fairly close value, so I adjusted the ADC's reference just for them. NiCAD's, and NiMH are more interested in relative voltage levels, so they aren't at all critical. -Chuck Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. There is something to be said for using standardized power sources. LiIon are available in the usual A, AA, AAA sizes as are NiCads. -Chuck Is there any difference between LiION and LiPoly charging? |
#47
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Lord Garth wrote:
I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. There is something to be said for using standardized power sources. LiIon are available in the usual A, AA, AAA sizes as are NiCads. -Chuck Is there any difference between LiION and LiPoly charging? I don't know, I haven't looked into it. LiION basically wants to be charged from a constant voltage source, but with the caviot that the current must never be allowed to exceed the specified maximum, and the voltage must never be allowed to exceed the specified charge value... not even a little bit... it isn't so much that the cell cares, but rather that the protection circuits built in to the batteries get upset and permanently shut the battery down. SLA's really like being constant current charged with a burp, just like NiCADs. -Chuck |
#48
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Chuck Harris wrote:
Joerg wrote: Lord Garth wrote: "Chuck Harris" wrote in message news Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Yes! pant, pant, drool ... But only if that for sure doesn't get you into hot water. No problem there, I own the design, and the company. I did that one as a prototype for the US ARMY. It was a little brutal on the LiION batteries, as 8 bits doesn't give you a whole lot of resolution on your CV/CI regulator. PWM resolution is another concern. Not so much for a charger but for a regular switcher. Otherwise it'll go into a "burpy" mode if, for example, you want to run the PWM at 500kHz but the timer clock can't be more than 10MHz or so. The resolution is a problem for the feedback loop. I measure the supply voltage using the PIC's 8 bit ADC with the help of a stupid simple range selector. The charger had to handle batteries from a couple of volts up to 28V. That's a tall order, especially for LiIon. The LiION batteries need the voltage held to a fairly close value, so I adjusted the ADC's reference just for them. NiCAD's, and NiMH are more interested in relative voltage levels, so they aren't at all critical. Hopefully the on-chip ADC is quiet enough all the time. -Chuck Until the most recent amateur radio convention in Plano, I was charging my HT batteries with my bench supply. Seeing as how your design can do lead acid and Nimh, that would be nice. I don't have any lithium batteries in the radios though I did note the new HT designs used them...Man, are they pricey and small. I wish that radios, cordless phones, drills and whatnot would be run off regular AA cells. But no, one has to plunk down big bucks the instant the battery dies. I'd rather forego the increased capacity of LiIon. There is something to be said for using standardized power sources. LiIon are available in the usual A, AA, AAA sizes as are NiCads. To me mainstream means when you can buy them at CostCo, Walmart and at the major tourist places for a reasonable price ;-) -- Regards, Joerg http://www.analogconsultants.com |
#49
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Joerg wrote:
The charger had to handle batteries from a couple of volts up to 28V. That's a tall order, especially for LiIon. Tall orders are what I specialize in ;-) The charger had coded adapter cables that keyed into a database that had the charge parameters, and what algorithm to use. The entire charger module was on a 3 x 4 inch card using through hole. The Army used it to recharge any of their small batteries, such as the BB590 from surplus primary (Magnesium) battery packs. It was a 2 hour quick charger. The LiION batteries need the voltage held to a fairly close value, so I adjusted the ADC's reference just for them. NiCAD's, and NiMH are more interested in relative voltage levels, so they aren't at all critical. Hopefully the on-chip ADC is quiet enough all the time. I didn't see any problems with internal ADC noise. There 10 bit chips are quiet too... if you give them time to settle. -Chuck |
#50
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Chuck Harris wrote:
Lord Garth wrote: Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Sooo... have we been persuasive enough yet? |
#51
Posted to alt.binaries.schematics.electronic
|
|||
|
|||
0th cut, c/esr meter - Meter_0.jpg
Clifford Heath wrote:
Chuck Harris wrote: Lord Garth wrote: Do you care to share your schematics and code Chuck? You might be able to talk me into posting an earlier version that did pretty much everything I said, but used an 8 bit ADC in a PIC16C73. Sooo... have we been persuasive enough yet? Thus far, only 2 or 3 people have wanted the info. I will have to get to it as I can. But I will make it available. First I have to make it presentable, and write something up on winding the transformer. -Chuck |
Reply |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Electricty to flat: Powercard meter, coin meter, or what? | UK diy | |||
Digital E Field Meter -- who makes it? - Meter.jpg (1/1) [8K] | Electronic Schematics | |||
11 Meter to 10 Meter Yagi Antenna Conversion | Electronics Repair | |||
UPDATE: 11 Meter to 10 Meter Yagi Antenna Conversion | Electronics Repair | |||
UPDATE: 11 Meter to 10 Meter Yagi Antenna Conversion | Electronics Repair |