DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

16 bit accesses to peripherals

Thread Tools
 
Search this Thread
 
Old Dec 17, 2004 | 03:01 PM
  #1  
AlexJH's Avatar
Thread Starter
TGO Supporter
 
Joined: Jul 2000
Posts: 812
Likes: 1
Engine: 5.7L V8
Transmission: 700R4
16 bit accesses to peripherals

I'm wondering what a bus cycle looks like for an operation like:

LDD #$7000;
STD L3FEA;

The timing peripheral chip is only 8 bits, and I'm not sure how the two bytes are written. Does it do two write cycles? What order do they write in?

I'm also wondering about the timing peripheral chip's PWM outputs. It seems like a 0% PWM is $7000 and 100% is $DFFF but I don't understand why those two numbers were picked, can any explain?

Can't wait until I get my test bench! Then all I'll need is a scope so I can see what's going on.
Reply
Old Dec 17, 2004 | 03:35 PM
  #2  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Uses two write cycles for the data to the peripheral device. Reg A goes first.

As for the PWM the high nibble in the data word is used to select the frequency. The low order nibbles are used for the duty cycle.

RBob.
Reply
Old Dec 20, 2004 | 11:50 AM
  #3  
AlexJH's Avatar
Thread Starter
TGO Supporter
 
Joined: Jul 2000
Posts: 812
Likes: 1
Engine: 5.7L V8
Transmission: 700R4
Originally posted by RBob
Uses two write cycles for the data to the peripheral device. Reg A goes first.

As for the PWM the high nibble in the data word is used to select the frequency. The low order nibbles are used for the duty cycle.

RBob.
Cool, thanks!

Is there documenation anywhere on the timing chip? I've been searching the diy-efi archives but I haven't had any luck. I'm wondering about what frequencies are available for PWM, but I don't want to keep bugging you guys.

Just in case anyone is wondering, a nibble is 4 bits, there are 2 nibbles in a byte.
Reply
Old May 18, 2005 | 04:16 AM
  #4  
Z69's Avatar
Z69
Supreme Member
 
Joined: Sep 2003
Posts: 1,409
Likes: 1
From: Texas
Just so I have things straight.

From listings I found in ANHT
; 7000 = OFF
; D000 = O% DC
; D134 = 30% DC
; D200 = 50% DC
; DFFF = 100% DC

So $FFF is 100% and $D if some frequency?
If this is true, I don't get the math for %.

Or is it $DF & $FF?
Can't tell by how the nibbles were listed above.
But it makes more sense.
How do the freq #'s work?

Last edited by Z69; May 18, 2005 at 05:32 AM.
Reply
Old May 18, 2005 | 09:36 AM
  #5  
AlexJH's Avatar
Thread Starter
TGO Supporter
 
Joined: Jul 2000
Posts: 812
Likes: 1
Engine: 5.7L V8
Transmission: 700R4
A nibble is half a byte, or 4 bits. That refers to the $D value.

But you're right, the % listed doesn't make sense, when I divide $200 / $FFF, I get 0.125.

Unless $400 is the maximum DC and anything above that is 100%.
Reply
Old May 18, 2005 | 09:26 PM
  #6  
JP86SS's Avatar
Supreme Member
20 Year Member
iTrader: (1)
 
Joined: Apr 2004
Posts: 3,180
Likes: 3
From: Browns Town
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
There is also a listing that $0066 increments the D.C. by 10%.
More to the mystery.
Still digging.
Reply
Old May 18, 2005 | 10:00 PM
  #7  
JP86SS's Avatar
Supreme Member
20 Year Member
iTrader: (1)
 
Joined: Apr 2004
Posts: 3,180
Likes: 3
From: Browns Town
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
I may be off base on this one but I'll throw it out there.
Rbob's mention of the PW and DC being separate entites within the byte may be the answer here.
Controlling PW will give better "current" control while the DC is better for "banging" solenoids at full power (voltage controlled with no care for current requirements?). Control may have been setup to make additional smoothing of how the outputs operate with different devices.

DC = Amplitude, PW = Freq

Last edited by JP86SS; May 18, 2005 at 10:22 PM.
Reply
Old May 18, 2005 | 10:47 PM
  #8  
Z69's Avatar
Z69
Supreme Member
 
Joined: Sep 2003
Posts: 1,409
Likes: 1
From: Texas
Originally posted by JP86SS
There is also a listing that $0066 increments the D.C. by 10%.
$66 *3 =132
But the 50 and 100% values no where near track using $66 * 5 or 10.

Alex, I was hoping you'd scoped it by now.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
FormulaEngland
European Region
38
Jul 17, 2016 07:33 AM
paul_huryk
Miscellaneous Third Gen Items!
1
Oct 1, 2015 04:27 PM
ndndndnd
Transmissions and Drivetrain
4
Sep 28, 2015 08:00 AM




All times are GMT -5. The time now is 08:05 AM.