Jump to content
IGNORED

SuperCart Construction


Opry99er

Recommended Posts

  • 3 weeks later...
  • 3 weeks later...
  • 3 weeks later...

I sure wish I knew how to add it into my SuperNotes PCB.

Unfortunately, I don't know how to address these but I'm trying to learn. I've also got personal issues keeping me at Bay so my time is limited on how it's spent these days.

Edited by GDMike
  • Like 2
Link to comment
Share on other sites

10 hours ago, GDMike said:

Nope. I'm wondering if I have one of those RTC chips. I'll have to dig around. Now you're supposed to say, "I Know how to make that work in the supercart" 

Lol. Well it's a great idea. 

I just ordered a card and an old cartridge this week. I really like running Camel99 Forth with the supercart version on Classic99.

When it boots and says "24,008 FREE" it makes me happy. :) (we are an easy to please lot aren't we)

 I found 3 of these chips while unpacking some boxes.  They are only 8K bytes but that is all I really want.  We shall see if the batteries are still good.

I will let you know how it goes. I already have the Forth code to access the clock and calendar.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
On 4/25/2020 at 4:17 PM, TheBF said:

Has anyone ever used this chip in a Supercart?

I has an 8 byte clock and calendar built in. I used it in an industrial product in the 90s.

 

https://www.futurlec.com/Datasheet/STMicro/M48T08.pdf

I can confirm that this line of 8K battery RAMs is a drop-in chip for the Super Cart board from Arcade Shopper.

I didn't install the battery holder since the chip has a built in battery. Of course I didn't install the switches either and the open positions work with the MK48T18,

I might change R2 to reduce the brightness of the LED should I choose to install a LED.

But it is so neat to have an extra 8K RAM in the old machine.

 

Thank you Arcade Shopper.

 

 

  • Like 3
Link to comment
Share on other sites

  • 4 months later...
3 hours ago, GDMike said:

M48T08 on order. as Id like to try it out.

 

 

 

Here is the driver I wrote for Camel Forth.  Most of it looks ok for Turbo Forth except the RSHIFT and LSHIFT. 

 

You can replace those with multiple 2* for LSHIFT  and 2/  for RSHIFT .

So 4 LSHIFT  would be  2* 2* 2* 2* and 4 RSHIFT would 2/ 2/ 2/ 2/

 

\ CLOCK.MAX    access realtime clock in maxforth cpu           21DEC92 FOX
\ Ported from MaxForth to ANS/ISO Forth for CAMEL99 Forth      30MAY2020 BFox
\ MK48T18 8K battery ram with CLOCK and calendar in SUPER CART (>6000)

HERE
HEX
    6FF8   CONSTANT ctrl ( base address & control register of clock)
  ctrl 1 + CONSTANT sec
\ ctrl 2 + CONSTANT min
\ ctrl 3 + CONSTANT hr
  ctrl 4 + CONSTANT day
  ctrl 5 + CONSTANT date
\ ctrl 6 + CONSTANT month
\ ctrl 7 + CONSTANT yr

.( bcd conversions)
HEX
: BCD>S ( bcd -- n )
       DUP  0F AND
       SWAP F0 AND
       4 RSHIFT 0A * + ;

DECIMAL
: S>BCD ( n -- bcd )  10 /MOD  4 LSHIFT + ;

: BCD@  ( adr -- c)   C@ BCD>S ;      \ fetches BCD # and converts it

: clkwrt ( --) 80 ctrl C! ;    \ set write bit
: clkrd  ( --) 40 ctrl C! ;    \ set read bit stops updates
: clkon  ( --)  0 ctrl C! ;    \ clr R/W, resume updates
: ##  ( n -- ) 0 <# # # #> TYPE ;
DECIMAL
: DAY@  ( -- c ) clkrd day C@  07 AND clkon ;

: TIME@  ( -- sec min hr) \ can be used to compute total seconds
       clkrd
       sec BCD@
       sec 1+ BCD@
       sec 2+ BCD@    \ read the bytes
       clkon ;

: DATE@  ( -- date month yr)
       clkrd                           ( stop updates )
       date BCD@  date 1+ BCD@  date 2+ BCD@  ( read the bytes )
       clkon ;

: .TIME  ( -- ) TIME@  ## ." :" ## ." :" ## ;
HEX
: TIME! ( hr min sec -- )
       clkwrt               \ enable write-thru
       S>BCD 7F AND sec C!  \ store sec. & protect the STOP  bit
       S>BCD sec 1+ C!      \ store minutes
       S>BCD sec 2+ C!      \ store hours
       clkon ;              \ disable writes

: DATE! ( yr month date  -- )
       clkwrt
       0 day C!             \ starts the oscillator
       S>BCD date C!
       S>BCD date 1+ C!
       S>BCD date 2+ C!     \ store values
       clkon ;

                 \      YR       MM       DD
: .DATE  ( -- )  DATE@  ## ." /" ## ." /" ## ;

HERE SWAP - DECIMAL . .( bytes)

 

  • Thanks 1
Link to comment
Share on other sites

On 11/16/2020 at 7:52 AM, TheBF said:

Not by just piggy-backing it. You would need to disable some of the address lines on the 32K RAM or use a decoder chip.

Hmm. I removed the 32K sram from my Supercart, and I plugged in my MK48T08 that I just received and it's returning 0s.

Just for the purpose of orienting which bank is 0, I plugged in an 8K SRAM and determined that both switches have to be up. The 8K returned good data along with the 32K I tried earlier, but the new MK48T08 returned 0s again.

Any ideas? 

Oh, BTW. I'm lighting a fire up under CAMEL FORTH. Just converting to real floppies, but I'll be running it later. Whohoo, what else better to do on FORTH day.

Edited by GDMike
  • Like 1
Link to comment
Share on other sites

So you've set the switches such that you can write to the 8K RAM and read the same data back?

 

Worth checking the supply voltage on pin 28 of the 48T08 when its plugged in and the computer's on. If it's less than ~4.75V then the device goes into write protect mode where you also can't read from it (but the normal 8K RAM would still work). The supply voltage is going to be less than the computer +5V supply anyway due to the diode in the battery backup circuit. If the voltage is low, might be worth just bending pin 28 out of the socket and connecting direct to +5V on the PCB and see if it then works.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...