Shop OBEX P1 Docs P2 Docs Learn Events
TAQOZ - Tachyon Forth for the P2 BOOT ROM - Page 20 — Parallax Forums

TAQOZ - Tachyon Forth for the P2 BOOT ROM

1171820222338

Comments

  • Peter,

    On my P2-ES board, I am trying to see VGA output from the SD boot version (1.1) of TAQOZ. I can see VGA output from Cordic Crickets and Invaders demos. I have the Parallax VGA-PS2 Adapter Board. I have connected:

    P0 - hSync
    P1 - B0
    P2 - R0
    P3 - G0
    P4 - vSync
    VSS - Gnd

    Maybe I am assuming too much. I assumed that VGA would mirror what I am seeing on the TerraTerm window. Do I need the keyboard installed to run TAQOZ 1.1 on my VGA monitor? Sorry if this is a really basic question....
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-20 05:37
    TESTING & FORMATTING SD CARDS

    Prior to implementing SD FORMATTING in TAQOZ I have been looking at reporting card and format information. Even though there are a few little bugs in there such CHS and some CSD info, this is the report style I have at present. Hopefully I should be able to implement FORMAT soon which I will end up testing on a 64GB Sandisk. Besides default values the user will be able to specify partitions and cluster sizes etc.

    Other reporting utilities will show the sector map (where there are blank or used sectors or clusters or larger groups of sectors) etc.
    The CID also reports the manufacturer if known but at least the information that is recorded by the manufacturer, valid or invalid . I will also expand on the OCR and some more reports on actual read/write speeds.

    EDIT: updated
    TAQOZ#   MOUNT CARD: SANDISK   SD SL08G REV$80 #0168665696 DATE:2016/2
    
            *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms
        TRANSFER SPEED.................. 25.0Mbps 
        BLKLEN.......................... 512
        SIZE............................ 7,579MB
        Read Current @VDD min........... 100ma
        Read Current @VDD max........... 25ma
        Write Current @VDD min.......... 1ma
        Write Current @VDD max.......... 45ma
        SECTOR READ SPEEDS.............. 514us,428us,520us,449us,449us,449us,449us,449us,
    
    
            *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... FAT32 CHS
        CHS START....................... 0,130,3
        CHS END......................... 966,80,10
        FIRST SECTOR.................... $0000_2000
        TOTAL SECTORS................... 15,515,648 = 7,944MB
    
            *** FAT32 INFORMATION *** 
        OEM NAME........................ MSWIN4.1
        bytes/sector.................... 512
        sectors/cluster................. 64 = 32kB clusters
        reserved........................ 34 11 
        Number of FATs.................. 2
        reserved........................ 00 00 00 00 F8 00 00 3F 00 FF 00 00 20 00 00 
        Sectors in partition............ 15,515,648 = 7,944MB
        Sectors/FAT..................... 1,894
        FAT FLAGS....................... 0
        FAT32 VERSION................... 00 00 
        ROOT CLUSTER.................... $0000_0002 SECTOR: $0000_4000
        FILE INFO SECTOR................ $0001
        BACKUP BOOT SECTOR.............. $0006
        reserved........................ 00 00 00 00 00 00 00 00 00 00 00 00 
        Logical Drive#.................. 384
        Extended signature.............. $29 good
        Partition Serial#............... $63FE_C331 1677640497
        Volume Name..................... P2D2       
        FAT name........................ FAT32    ok
    TAQOZ#
    

    EDIT: added DIR listing format
    TAQOZ# DIR 
      0:   P2D2         $0000_3F80   1980-00-24 00:00   ................   0
      1:   HELP         $0000_4080   2018-03-24 15:50   .          ..d.p   0
      2:   ASCIIART.TXT $0000_4400   2017-11-24 15:05   From dondd@hpmwt   55,148
      3:   TIGER1  .BMP $0000_4480   2018-12-24 06:58   BMz0......z...l.   77,946
      4:   POPCORN .WAV $0000_4540   2014-06-24 06:15   RIFF$...WAVEfmt    117,804
      5:   SPIDEY  .PNG $0000_4640   2018-10-24 13:16   .PNG........IHDR   124,697
      6:   _BOOT_P2.BIN $0000_4740   2019-01-24 12:40   ................   131,072
      7:   TAQOZ2V0.FTH $0006_3B00   2019-01-24 13:10   TAQOZ....{..TAQO   39,131
      8:   TIGER   .JPG $0000_4940   2018-10-24 01:10   ......JFIF......   133,590
      9:   SPIDEY  .GIF $0000_4A80   2018-10-24 01:28   GIF89a..........   145,609
     10:   FISH2   .VT  $0000_4BC0   2017-11-24 15:08   .[H.[J..[1;0H      211,945
     11:   ROUGES  .TXT $0000_4D80   2017-11-24 13:51   ...The Project G   219,885
     12:   TIGER   .GIF $0000_4F40   2018-10-24 01:16   GIF89a..........   248,692
     13:   _BOOT_P2.BIB $0000_5140   2019-01-24 12:40   ................   262,144
     14:   MARIO   .BMP $0000_5340   2018-12-24 06:55   BM*.......*...l.   308,266
     15:   BEACH2  .BMP $0000_55C0   2018-12-24 14:20   BM2.......2...l.   308,274
     16:   LMMS    .BMP $0000_5840   2018-10-24 01:01   BM8.......6...(.   308,280
     17:   BEACH   .BMP $0000_5AC0   2018-11-24 08:32   BMZ.......Z...l.   308,314
     18:   BIRD    .BMP $0000_5D40   2018-12-24 06:54   BMz.......z...l.   308,346
     19:   BUZZ    .BMP $0000_5FC0   2018-11-24 01:53   BMz.......z...l.   308,346
     20:   DRAGON  .BMP $0000_6240   2018-10-24 01:21   BMz.......z...l.   308,346
     21:   EYEGOD  .BMP $0000_64C0   2018-10-24 04:17   BMz.......z...l.   308,346
     22:   FACE    .BMP $0000_6740   2018-10-24 04:03   BMz.......z...l.   308,346
     23:   FIRE    .BMP $0000_69C0   2018-11-24 23:51   BMz.......z...l.   308,346
     24:   MCQUEEN .BMP $0000_6C40   2018-10-24 04:19   BMz.......z...l.   308,346
     25:   P2D2A   .BMP $0000_6EC0   2018-12-24 14:26   BMz.......z...l.   308,346
     26:   SPIDEY  .BMP $0000_7140   2018-10-24 04:24   BMz.......z...l.   308,346
     27:   SUNSET  .BMP $0000_73C0   2018-10-24 04:13   BMz.......z...l.   308,346
     28:   TIGER   .BMP $0000_7640   2018-12-24 14:23   BMz.......z...l.   308,346
     29:   WARWORLD.TXT $0000_78C0   2017-11-24 13:42   ...The Project G   365,413
     30:   VULGAR  .TXT $0000_7BC0   2017-11-24 13:56   ...Project Guten   511,916
     31:   _BOOT_P2.BIA $0000_7FC0   2019-01-24 12:40   ................   524,288
     32:   TIGER   .PNG $0000_83C0   2018-10-24 01:07   .PNG........IHDR   693,848
     33:   PRIDE   .TXT $0000_8940   2017-11-24 12:54   ...The Project G   726,223
     34:   LEXICON .TXT $0000_8F00   2017-11-24 13:48   ...The Project G   988,130
     35:   ILIAD   .TXT $0000_96C0   2017-11-24 12:55   ...The Project G   1,201,891
     36:   MIDENG  .TXT $0000_A000   2017-11-24 14:11   ...The Project G   1,248,077
     37:   WARPEACE.TXT $0000_A9C0   2015-08-24 07:27   The Project Gute   3,226,652
     38:   KJV     .TXT $0000_C280   2017-08-24 12:28        ___________   5,504,282
     39:   LOVE    .WAV $0000_EC80   2015-02-24 08:06   RIFF.?..WAVEfmt    14,630,692
     40:   WEBSTERS.TXT $0001_5C40   2017-11-24 12:59   ...The Project G   28,956,348
     41:   FILE128M.BIN $0002_3940   2019-01-24 12:42   ...The Project G   134,217,728
     42:   TAQOZ1V0.FTH $0006_3980   2018-12-24 00:55   TAQOZ..{..use th   2,959
     43:   SPLAT   .FTH $0006_39C0   2018-05-24 00:27   TAQOZ....pub SPL   19,080
     44:   BREAKOUT.FTH $0006_3A00   2018-10-24 13:09   TAQOZ......\ TIM   5,538
     45:   SEE     .FTH $0006_3A40   2018-01-24 03:36   TAQOZ....(         3,495
     46:   TAQOZ1V2.FTH $0006_3A80   2019-01-24 22:45   TAQOZ....{..TAQO   37,556
     48:   _BOOT_P2.BIZ $0000_3F80   2019-01-24 13:19   ................   0  ok
    TAQOZ#
    
  • DaveJenson wrote: »
    Peter,

    On my P2-ES board, I am trying to see VGA output from the SD boot version (1.1) of TAQOZ. I can see VGA output from Cordic Crickets and Invaders demos. I have the Parallax VGA-PS2 Adapter Board. I have connected:

    P0 - hSync
    P1 - B0
    P2 - R0
    P3 - G0
    P4 - vSync
    VSS - Gnd

    Maybe I am assuming too much. I assumed that VGA would mirror what I am seeing on the TerraTerm window. Do I need the keyboard installed to run TAQOZ 1.1 on my VGA monitor? Sorry if this is a really basic question....

    I will make up a connector for the ES board and double-check this myself. Have you tried to fault-find it yourself? Is that one of the new adapter pcbs?
    BTW - P0..P4 = HSYN,BLUE,GREEN,RED,VSYN
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-20 07:34
    Some further testing of my SD card reporting software where I check actual read speeds and report back for single sector reads and I also do a 256kB read and calculate the read speed for blocks mode. I used a Sandisk 64GB Ultra. Have a look at the results for a modest 180MHz clock rate.
    TAQOZ# .SPEEDS 
        SECTOR READ SPEEDS.............. 512us,516us,448us,449us,449us,449us,449us,449us,
        BLOCK READ RATE................. 7,426,565bytes/second @180MHz ok
    

    I think there must be an error there but I have clocked over 3MB/s before. Oh well, just testing the testing software!

    EDIT: I knew I made a miscalculation. This is the correct figure (for 8GB Sandisk Ultra):
        SECTOR READ SPEEDS.............. 514us,521us,449us,449us,449us,449us,449us,449us,
        BLOCK READ RATE................. 1,855kB/second @180MHz
    
        SECTOR READ SPEEDS.............. 392us,395us,327us,328us,328us,327us,328us,327us,
        BLOCK READ RATE................. 3,293kB/second @320MHz
    

    Interestingly, the 64GB Sandisk Ultra has a much longer latency on sector reads:
    SECTOR READ SPEEDS.............. 896us,927us,928us,926us,928us,930us,930us,927us,
        BLOCK READ RATE................. 1,847kB/second @180MHz
    
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-20 15:58
    I tweaked the SPI routines so that SD read speed is now 2.28MB/s @180MHz which is very close to the 25MHz SPI bus maximum for these cards. Has anyone tried using the Smart Pins in SPI mode?
            *** CID *** 
        MANUFACTURER.................... SANDISK  
        OEM ID.......................... SD
        PRODUCT NAME.................... SL08G
        REV............................. $80
        SERIAL#......................... 1091343200
        MANUFACTURED.................... 2016/2
        CRC............................. $77 
    
            *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms
        TRANSFER SPEED.................. 25.0Mbps 
        BLKLEN.......................... 512
        SIZE............................ 7,579MB
        Read Current @VDD min........... 100ma
        Read Current @VDD max........... 25ma
        Write Current @VDD min.......... 1ma
        Write Current @VDD max.......... 45ma
    
        SECTOR READ SPEEDS.............. 446us,622us,519us,522us,521us,523us,525us,516us,
        BLOCK READ RATE................. 2,280kB/second @180MHz
    
            *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... FAT32 CHS
        CHS START....................... 0,130,3
        CHS END......................... 966,80,10
        FIRST SECTOR.................... $0000_2000
        TOTAL SECTORS................... 15,515,648 = 7,944MB
    
            *** FAT32 INFORMATION *** 
        OEM NAME........................         
        bytes/sector.................... 512
        sectors/cluster................. 64 = 32kB clusters
        reserved........................ 34 11 
        Number of FATs.................. 2
        reserved........................ 00 00 00 00 F8 00 00 3F 00 FF 00 00 20 00 00 
        Sectors in partition............ 15,515,648 = 7,944MB
        Sectors/FAT..................... 1,894
        FAT FLAGS....................... 0
        FAT32 VERSION................... 00 00 
        ROOT CLUSTER.................... $0000_0002 SECTOR: $0000_4000
        FILE INFO SECTOR................ $0001
        BACKUP BOOT SECTOR.............. $0006
        reserved........................ 00 00 00 00 00 00 00 00 00 00 00 00 
        Logical Drive#.................. 384
        Extended signature.............. $29 good
        Partition Serial#............... $3134_6330 825516848
        Volume Name..................... NO NAME    
        FAT name........................ FAT32    ok
    TAQOZ#
    
  • MJBMJB Posts: 1,235
    DaveJenson wrote: »
    Peter,

    On my P2-ES board, I am trying to see VGA output from the SD boot version (1.1) of TAQOZ. I can see VGA output from Cordic Crickets and Invaders demos. I have the Parallax VGA-PS2 Adapter Board. I have connected:

    P0 - hSync
    P1 - B0
    P2 - R0
    P3 - G0
    P4 - vSync
    VSS - Gnd

    Maybe I am assuming too much. I assumed that VGA would mirror what I am seeing on the TerraTerm window. Do I need the keyboard installed to run TAQOZ 1.1 on my VGA monitor? Sorry if this is a really basic question....

    this sounds like your HW setup is working except maybe for
    BTW - P0..P4 = HSYN,BLUE,GREEN,RED,VSYN
    green and red switched

    but if your question is how to get the Taqos console redirected to output on VGA then try this:
    VGA  ." VGA" CON ." Console"
    
    VGA should redirect all standard output to VGA and CON will restore to the serial console
  • Hi Peter,

    Finally managed to boot TAQOZ v1.1, and it looks much better than the version that is burned into the ES. However, the output frequency is still not correct. For instance: 58 PIN 100 KHZ makes the pin output a 225KHz square wave.

    I guess the difference here is, TAQOZ v1.0 uses RCFAST, while this new version uses some frequency derived from the crystal. The new TAQOZ is "set" way too fast.

    Kind regards, Samuel Lourenço
  • Pete's P2D2 board has a 12 MHz oscillator while P2-ES has a 20 MHz crystal.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-21 03:36
    samuell wrote: »
    Hi Peter,

    Finally managed to boot TAQOZ v1.1, and it looks much better than the version that is burned into the ES. However, the output frequency is still not correct. For instance: 58 PIN 100 KHZ makes the pin output a 225KHz square wave.

    I guess the difference here is, TAQOZ v1.0 uses RCFAST, while this new version uses some frequency derived from the crystal. The new TAQOZ is "set" way too fast.

    Kind regards, Samuel Lourenço

    Thanks for letting me know and it is so. Seems that I had a hard constant in there from the FPGA version so I will fix that to work with the current clock setting and update the images.


    btw - you can try using this code:
    : NCOCNT ( hz -- cntval )	CLKHZ SWAP U/ 0 1 ROT UM// DROP NIP ;
    : MHZ				1000 *
    : KHZ				1000 *
    : HZ				NCOCNT
    : NCO				%1_00110
    : SETNCO ( val mode --)		2* L WRPIN 1 WXPIN WYPIN ;
    
  • @"Peter Jakacki" do you have i2c working for TAQOZ?
  • FredBlais wrote: »
    @"Peter Jakacki" do you have i2c working for TAQOZ?

    No, but thanks for reminding me. I might have a quick look at it and post some code back shortly.
  • samuell wrote: »
    Hi Peter,

    Finally managed to boot TAQOZ v1.1, and it looks much better than the version that is burned into the ES. However, the output frequency is still not correct. For instance: 58 PIN 100 KHZ makes the pin output a 225KHz square wave.

    I guess the difference here is, TAQOZ v1.0 uses RCFAST, while this new version uses some frequency derived from the crystal. The new TAQOZ is "set" way too fast.

    Kind regards, Samuel Lourenço

    Thanks for letting me know and it is so. Seems that I had a hard constant in there from the FPGA version so I will fix that to work with the current clock setting and update the images.


    btw - you can try using this code:
    : NCOCNT ( hz -- cntval )	CLKHZ SWAP U/ 0 1 ROT UM// DROP NIP ;
    : MHZ				1000 *
    : KHZ				1000 *
    : HZ				NCOCNT
    : NCO				%1_00110
    : SETNCO ( val mode --)		2* L WRPIN 1 WXPIN WYPIN ;
    
    Thanks, Peter. That worked!

    By any chance, is it possible to implement baud rate correction on frequency change? The serial terminal will get unresponsive once I try ECO, SLOW, TURBO, etc.

    Kind regards, Samuel Lourenço
  • ctwardellctwardell Posts: 1,716
    edited 2019-01-21 14:31
    samuell wrote: »
    By any chance, is it possible to implement baud rate correction on frequency change? The serial terminal will get unresponsive once I try ECO, SLOW, TURBO, etc.

    Kind regards, Samuel Lourenço

    Samuel,

    It should already be included, by default it corrects to 115200, but you can change that as shown here:

    https://forums.parallax.com/discussion/comment/1458952/#Comment_1458952

    baudrate CONBAUD P2-ES ECO

    C.W.



  • MJB wrote: »
    DaveJenson wrote: »
    Peter,

    On my P2-ES board, I am trying to see VGA output from the SD boot version (1.1) of TAQOZ. I can see VGA output from Cordic Crickets and Invaders demos. I have the Parallax VGA-PS2 Adapter Board. I have connected:

    P0 - hSync
    P1 - B0
    P2 - R0 G0
    P3 - G0 R0
    P4 - vSync
    VSS - Gnd

    Maybe I am assuming too much. I assumed that VGA would mirror what I am seeing on the TerraTerm window. Do I need the keyboard installed to run TAQOZ 1.1 on my VGA monitor? Sorry if this is a really basic question....

    this sounds like your HW setup is working except maybe for
    BTW - P0..P4 = HSYN,BLUE,GREEN,RED,VSYN
    green and red switched

    but if your question is how to get the Taqos console redirected to output on VGA then try this:
    VGA  ." VGA" CON ." Console"
    
    VGA should redirect all standard output to VGA and CON will restore to the serial console

    I mis-typed my configuration. Corrected above. It does match the correct hookups. I still can't get VGA output from TAQOZ. Do I need a PS/2 keyboard connected? I'm trying to see on VGA the same output as on TeraTerm...
  • I just checked the config and nothing was coming up but when I went to view a BMP file it sprang to life. Try 100 INT C! to set the intensity which may be sitting at zero. P2PC will run the serial console and VGA and keyboard if connected, in parallel.
  • I just checked the config and nothing was coming up but when I went to view a BMP file it sprang to life. Try 100 INT C! to set the intensity which may be sitting at zero. P2PC will run the serial console and VGA and keyboard if connected, in parallel.


    THERE IT IS! P2PC did the trick. I now see console output on the VGA screen.

    Thanks!

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-23 13:55
    P2-ES V2 BOOT IMAGE (updated link)

    For anyone who wants to have a play, I have a new V2 boot image. The new V2 kernel is a minimal precompiled kernel with most of the higher level functions metacompiled (pasting source to TAQOZ).

    There is quite a bit of stuff in there for reporting the SD and file system which you can access all in one go with .DISK or individually with .SD or .CARD or .FAT or further still with .PARTS .CID .CSD .OCR etc.

    This version will soon have proper SD formatter and disk utilities available and in fact I patched the partition table of one of my corrupted cards without losing anything. I also have an assembler to include yet and some I2C routines etc. I still need to fix a couple of minor issues with the SD report since I got caught off-guard using V1 of the CSD table rather than V2.

    You can make a boot file using the BACKUP word followed by the file name or BIX for a shortcut or else FLASH to save to the serial Flash (still needs a first stage boot program).
    ----------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V2.0 'CHIP' 180MHz 190123-0930
    ----------------------------------------------------------------
    TAQOZ# MOUNT CARD: SANDISK   SD SL08G REV$80 #1426921825 DATE:2016/2 ok
    TAQOZ# .DISK CS:60 SO:58 SI:59 CK:61 
    
                       *** CID *** 
        MANUFACTURER.................... SANDISK  
        OEM ID.......................... SD
        PRODUCT NAME.................... SL08G
        REV............................. $80
        SERIAL#......................... 1426921825
        MANUFACTURED.................... 2016/2
        CRC............................. $61 
    
                  *** OCR REGISTER *** 
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks 
        TRANSFER SPEED.................. 50Mbps 
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 7,761MB
        Read Current @VDD min........... 100ma
        Read Current @VDD max........... 25ma
        Write Current @VDD min.......... 1ma
        Write Current @VDD max.......... 45ma
    
        SECTOR READ SPEEDS.............. 443us,464us,394us,394us,393us,393us,393us,394us,
        BLOCK READ RATE................. 2,278kB/second @180MHz
    
                *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... FAT32 CHS
        CHS START....................... 0,0,0
        CHS END......................... 0,0,0
        FIRST SECTOR.................... $0000_2000
        TOTAL SECTORS................... 15,515,648 = 7,944MB
    
                *** FAT32 INFORMATION *** 
        OEM NAME........................ MSWIN4.1
        bytes/sector.................... 512
        sectors/cluster................. 64 = 32kB clusters
        reserved........................ 34 11 
        Number of FATs.................. 2
        reserved........................ 00 00 00 00 F8 00 00 3F 00 FF 00 00 20 00 00 
        Sectors in partition............ 15,515,648 = 7,944MB
        Sectors/FAT..................... 1,894
        FAT FLAGS....................... 0
        FAT32 VERSION................... 00 00 
        ROOT CLUSTER.................... $0000_0002 SECTOR: $0000_4000
        FILE INFO SECTOR................ $0001
        BACKUP BOOT SECTOR.............. $0006
        reserved........................ 00 00 00 00 00 00 00 00 00 00 00 00 
        Logical Drive#.................. 384
        Extended signature.............. $29 good
        Partition Serial#............... $5E5F_7F14 1583316756
        Volume Name..................... TAQOZ      
        FAT name........................ FAT32    ok
    TAQOZ# WORDS 
    V CON] [CON ucon .VMAP PCB$ NULLOUT ECHO OK unum uaccept uprompt flags keypoll EE! EE@ U.R 
    CLKFREQ BOLD PLAIN .DT .DATE .TIME TIMER CONIO ALARM TIMEOUT? TIMEOUT $= :F6 :F5 :FB :FC KEY# 
    KEY^ P2PC PC CONVGA CONKB KB@ KB !KB kbb KEY#@ KBRK MAKE? RXKB kbtbl kbk rak lak rck lck rsk 
    lsk caps kbs ADC12 DAC fibos fibo VEMIT VGA BELL VCH NEWLINE SCROLL VHOME TERM NS BOTTOM >VXY 
    VXY> VXY @RC b/l _scrolls vflg row1 row col1 col CSP LSP csp lsp FONT5X7 SUBS GAMMA _th gam/ 
    gam* NEGATIVE N SHADOWS PALMASK SLIDESHOW VIEW$ VIEW VIEWSEC $+ V$ VFILL CLRSCR CS VFLIP V 
    BUFFER HFLIP XFLIP HVFLIP DEMO BUTTON PANEL RECT VLINE HLINE LINETO X+- Y+- Y2 X2 -BEST -C64 
    -TERM MAC !PALETTE >RGB RGB> REVERSE PLAIN brown gray coal white magenta cyan blue yellow green 
    red black COLORS PLOT PIXEL! PEN> >PEN PAPER@ PEN@ PAPER PEN _pen1 _paper1 _pen _paper BR BL 
    TR TL CENTER Y+! X+! !XY XY@! XY! @XY h w y x Y@ X@ scr' height width _y1 _y _x1 _x SHOW HIDE 
    FRAMES SYNCH FADE BRIGHTER rm lm BMPSZ SCRSZ rows cols SCR PALETTE VCNT INTON INT BMP BACKUP$ 
    BACKUP BIX .SUCCESS .ACTIVE .SECT FORMAT !ROOT !FAT !MBR !PARTS FS! QV cat RENAME RENAME# GETFNAME 
    FLOAD FLOAD1 FOPEN$ FOPEN FOPEN# FINDSD FNAME= COMPARE >F83 atr ext fname dirbuf FWRITE FREAD 
    FGET FLOAD ls .DIR DIR .ENT .DATE .DECX 3S .NAME @DIR @DIRNAME C>S FSECT FOPENS MOUNT ?MOUNT 
    .DISK .FAT .PARTS @PART .CHS ?FS .MAP .SD .CARD .SPEEDS .SPD RW wm RO RDFAT CL>SECT2 CLUST>SECT 
    CWD! FOPENS! ROOT @FAT @BOOT @ROOT SD SDW@ SDC! SDC@ SD! SD@ SDADR SDADR! @FILE SECTOR SECTORF 
    SDRDS SDWAIT SDRDX SDRD SDRDBK FLUSH ?FLUSH SDWRS SDWR .OCR .CSD .TRANS .TACC TACC tval .CURRENT 
    .xs 10^ .ma ma ,, BITS@ CSD@ XSHR .CIDL .CID .MAN .TITLE .LINE@ .LINE !SD !SX SDDAT! SD4@ SDSTAT 
    ACMD SDRES CMD !CRC TOKEN SDCLK3 SDCLK RELEASE SD? SDPINS SDCS SDSPI SDBUF1 SDBUF fcl fdate 
    ftime fch fatsz sdsz cwdsect fat2 fat1 rootdir volname serial extsig ldn rootcl fat? sectfat 
    partsize fats rsvd sectclust bytesect oemname fat32 parts bitbuf blklen sdhc cflg fq f? file# 
    wrens _fkey _fread filesect @sector seccrc sdsum @sdwr @sdrd sdcrc mntd wrflg sdcmd sdsize 
    csd cid ocr sdvars TABLE KEY: EMIT: .TYPE ?PINS ?PIN U.R .BYTES .BITS COMMA SPINNER _sp _el 
    HILO PULSES PULSE PW ns SMPS TRI PWM! PWM BLINK DUTY SETNCO NCO HZ KHZ MHZ NCOCNT MUTE WRFNC 
    !OUT !IN =CLK =FLOAT 10ua 100ua 1ma 150K 15K 1K5 FAST SINK SOURCE PINMODE _pinmode SYNTX FLANK 
    HYPER RACE TURBO CRUISE ECO SLOW P2MHZ CLOCK CONBAUD RXD BAUD TXD BIT dl _xin XPF 0PF 30PF 
    15PF CC RCFAST RCSLOW USEXTAL USEPLL CLKSRC PLLDIV VCOMUL XIDIV PLLOFF PLLEN CLK! CLKSET _fin 
    _clk BB13 C2D C2CK BBVDD BBGND BB00 BB01 BB02 @wizpins WIZCK WIZDI WIZDO WIZCE USB1- USB1+ 
    USB- USB+ AINR AINL AOUTR AOUTL SDA SCL KBDAT KBCLK SDDO SDDI SDCK INB INA OUTB OUTA DIRB DIRA 
    *** '' DUP OVER 3RD 4TH OVER+ SWAP ROT -ROT DROP 2DROP 3DROP NIP 2SWAP 2DUP ?DUP AND ANDN OR 
    XOR ROL ROR ROR? WRCH >> << SAR 2/ 2* 4/ 4* 16<< 8<< 9<< 16>> 8>> 9>> REV |< >| 1& >N >B >9 
    BITS NOT = <> 0= 0<> 0< < U< > U> <= => WITHIN DUPC@ C@ W@ @ C+! C! C@++ W+! W! +! ! BIT! SET 
    CLR SET? 1+ 1- 2+ 2- 4+ + - UM* * W* / U/ U// // */ UM// C++ C-- W++ W-- ++ -- RND GETRND SQRT 
    SETDACS ~ ~~ W~ W~~ C~ C~~ L>S >W L>W W>B W>L B>W B>L MINS MAXS MIN MAX ABS -NEGATE ?NEGATE 
    NEGATE ON TRUE -1 FALSE OFF GOTO IF ELSE THEN BEGIN UNTIL AGAIN WHILE REPEAT SWITCH CASE@ CASE= 
    CASE> BREAK CASE ADO DO LOOP +LOOP FOR NEXT ?NEXT I J LEAVE IC@ I+ BOUNDS H L T F R HIGH LOW 
    FLOAT PIN@ WRPIN WXPIN WYPIN RDPIN RQPIN AKPIN WAITPIN WRACK PIN @PIN WAITX WAITCNT SETSE1 
    SETSE2 SETSE3 SETSE4 WAITSE1 WAITSE2 WAITSE3 WAITSE4 REBOOT RESET 0EXIT EXIT NOP CALL JUMP 
    >R R> >L L> !SP DEPTH COG@ COG! LUT@ LUT! COGID COGINIT COGSTOP NEWCOG COGATN POLLATN SETEDG 
    POLLEDG KEY WKEY KEY! CON NONE COM CONKEY CONEMIT SEROUT .EMIT EMIT EMITS CRLF CR CLS SPACE 
    SPACES RAM DUMP: DUMP DUMPW DUMPL DUMPA DUMPAW QD QW ?ERROR CONSOLE DEBUG lsio COG LUT KB MB 
    M . PRINT .AS .AS" .DECL .DEC4 .DEC2 HOLD #> <# # #S <D> U. .DEC .BIN .H .B .BYTE .W .WORD 
    .L .LONG .ADDR PRINT$ LEN$ UPPER$ " ." PRINT" CTYPE NUMBER ?EXIT ERASE FILL CMOVE <CMOVE LMOVE 
    s ms us CNT@ LAP LAP@ .LAP .CLK .ms HEX DEC BIN .S W WORDS @WORDS GET$ SEARCH $># uemit ukey 
    char delim names TASK REG @WORD SPIN | || , [W] ["] NULL$ $! $= >UPPER ASM FORGET CREATE$ CREATE: 
    VAR pub pri pre : ; [ ] ' := :=! ALIGN DATCON ALLOT HERE @HERE @CODES orglen org@ !org org 
    bytes words longs byte word long res [C] GRAB NFA' CPA CFA \ --- ( { } IFNDEF IFDEF TAQOZ TERM 
    AUTO SPIRD SPIRDL SPIWB SPICE SPIWC SPIWW SPIWM SPIWL SPIPINS SPIRX SPITXE SPITX CLKS WSLED 
    WAIT CLKDIV RCSLOW HUBSET WP WE CLKHZ ERROR SFPINS SF? SFWE SFCMD SFWD SFSID SFJID SFER4 SFER32 
    SFER64 SFERASE SFERPAGE SFWRPG SFBACKUP RESTORE SFRDS SFWRS SFC@ SFW@ SF@ SF .SF END  906 ok
    TAQOZ#   ok
    TAQOZ# VIEW SPIDEY  ok
    TAQOZ#   ok
    TAQOZ# DIR 
      0:   TAQOZ        $0000_3F80   2018-05-24 10:33   ................   0
      1:   CODE         $0000_4080   2017-07-24 07:56   .          ...gd   0
      2:   HELP         $0000_42C0   2017-12-24 12:34   .          ..dgd   0
      3:   MUSIC        $0000_4680   2016-06-24 02:37   .          ..dgd   0
      4:   VIDEOS       $0004_06C0   2016-08-24 02:50   .          ...ld   0
      5:   3X5     .TXT $0007_A540   2017-11-24 15:06   flf2a$ 6 4 6 -1    3,968
      6:   ASCIIART.TXT $0007_A580   2017-11-24 15:05   From dondd@hpmwt   55,148
      7:   CALCDEMO.FTH $0007_A600   2017-10-24 06:28   TACHYON V4 ( V4.   1,848
      8:   EASYFILE.FTH $0007_A640   2017-10-24 13:53   IFDEF EASYFILE.f   46,173
      9:   EASYNET .FTH $0007_A6C0   2017-10-24 01:57   FL EASYNET.FTH..   42,985
     10:   EXTEND  .FTH $0007_A740   2017-10-24 12:14   TACHYON V4 ( V4.   60,355
     11:   FISH2   .VT  $0007_A7C0   2017-11-24 15:08   .[H.[J..[1;0H      211,945
     12:   HOME    .HTM $0007_A980   2014-06-24 15:45   <!DOCTYPE HTML P   68,513
     13:   HTTP001 .HTM $0007_AA40   2013-12-24 16:25   HTTP/1.1 401 Una   388
     14:   HTTP404 .HTM $0007_AA80   2013-12-24 23:58   HTTP/1.1 404 Not   564
     15:   ILIAD   .TXT $0007_AAC0   2017-11-24 12:55   ...The Project G   1,201,891
     16:   KJV     .TXT $0007_B400   2017-08-24 12:28        ___________   5,504,282
     17:   LEXICON .TXT $0007_DE00   2017-11-24 13:48   ...The Project G   988,130
     18:   LIFE    .FTH $0007_E5C0   2017-10-24 05:40   TACHYON V4 ( V4.   7,308
     19:   LOGON   .HTM $0007_E600   2013-12-24 16:25   HTTP/1.1 401 Una   388
     20:   LOVE    .WAV $0007_E640   2015-02-24 08:06   RIFF.?..WAVEfmt    14,630,692
     21:   MIDENG  .TXT $0008_5600   2017-11-24 14:11   ...The Project G   1,248,077
     22:   P8X32A  .PDF $0008_5FC0   2012-02-24 12:57   %PDF-1.6.%......   1,442,886
     23:   PARALLAX.PNG $0008_6B00   2013-12-24 01:41   .PNG........IHDR   6,109
     24:   POPCORN .WAV $0008_6B40   2012-11-24 13:26   RIFF.y1.WAVEfmt    3,242,394
     25:   PRIDE   .TXT $0008_8400   2017-11-24 12:54   ...The Project G   726,223
     26:   ROUGES  .TXT $0008_89C0   2017-11-24 13:51   ...The Project G   219,885
     27:   SEE     .FTH $0008_8B80   2017-07-24 01:30   TACHYON V4 ( V4.   2,187
     28:   SPLAT-V4.FTH $0008_8BC0   2017-03-24 12:30   TACHYON V4....FO   18,944
     29:   VULGAR  .TXT $0008_8C00   2017-11-24 13:56   ...Project Guten   511,916
     30:   WARPEACE.TXT $0008_9000   2015-08-24 07:27   The Project Gute   3,226,652
     31:   WARWORLD.TXT $0008_A8C0   2017-11-24 13:42   ...The Project G   365,413
     32:   WEBSTERS.TXT $0008_ABC0   2017-11-24 12:59   ...The Project G   28,956,348
     33:   _BOOT_P2.BIN $0009_8940   2018-12-24 06:48   ................   131,072
     34:   BEACH   .BMP $0009_8C40   2018-12-24 06:50   BMZ.......Z...l.   308,314
     35:   _BOOT_P2.BIX $0009_8A40   2018-12-24 06:48   X...P2-ES   ....   131,072
     36:   _BOOT_P2.BIB $0009_8B40   2018-12-24 06:48   ................   131,072
     37:   _BOOT_P2.BIC $0000_3F80   2018-12-24 14:55   ................   0
     38:   BEACH2  .BMP $0009_8EC0   2018-12-24 14:20   BM2.......2...l.   308,274
     39:   BIRD    .BMP $0009_9140   2018-12-24 06:54   BMz.......z...l.   308,346
     40:   BUZZ    .BMP $0009_93C0   2018-11-24 01:53   BMz.......z...l.   308,346
     41:   DRAGON  .BMP $0009_9640   2018-10-24 01:21   BMz.......z...l.   308,346
     42:   EYEGOD  .BMP $0009_98C0   2018-10-24 04:17   BMz.......z...l.   308,346
     43:   FACE    .BMP $0009_9B40   2018-10-24 04:03   BMz.......z...l.   308,346
     44:   FIRE    .BMP $0009_9DC0   2018-11-24 23:51   BMz.......z...l.   308,346
     45:   LMMS    .BMP $0009_A040   2018-10-24 01:01   BM8.......6...(.   308,280
     46:   MARIO   .BMP $0009_A2C0   2018-12-24 06:55   BM*.......*...l.   308,266
     47:   MARIO   .PNG $0009_A540   2018-10-24 14:37   .PNG........IHDR   16,813
     48:   MCQUEEN .BMP $0009_A580   2018-10-24 04:19   BMz.......z...l.   308,346
     49:   P2D2A   .BMP $0009_A800   2018-12-24 14:26   BMz.......z...l.   308,346
     50:   SPIDEY  .BMP $0009_AA80   2018-10-24 04:24   BMz.......z...l.   308,346
     51:   SPIDEY  .GIF $0009_AD00   2018-10-24 01:28   GIF89a..........   145,609
     52:   SPIDEY  .PNG $0009_AE40   2018-10-24 13:16   .PNG........IHDR   124,697
     53:   SUNSET  .BMP $0009_AF40   2018-10-24 04:13   BMz.......z...l.   308,346
     54:   TIGER   .BMP $0009_B1C0   2018-12-24 14:23   BMz.......z...l.   308,346
     55:   TIGER   .GIF $0009_B440   2018-10-24 01:16   GIF89a..........   248,692
     56:   TIGER   .JPG $0009_B640   2018-10-24 01:10   ......JFIF......   133,590
     57:   TIGER   .PNG $0009_B780   2018-10-24 01:07   .PNG........IHDR   693,848
     58:   TIGER1  .BMP $0009_BD00   2018-12-24 06:58   BMz0......z...l.   77,946
     59:   TAQOZ1V1.FTH $0009_BDC0   2018-12-24 14:06   TAQOZ....{..TAQO   25,371
     60:   W5500A  .FTH $0009_BE00   2018-12-24 00:56   TAQOZ....FORGET    12,367
     61:   C2PROG  .FTH $0009_BE40   2018-12-24 13:58   TAQOZ....FORGET    12,180  ok
    TAQOZ#
    
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-23 13:08
    In between everything I am filling in little gaps. Here's one that sets the pin drive modes where I have an LED connected to ground without any resistor.
    TAQOZ# 40 PIN   1ma SOURCE   OPEN DRAIN   5 HZ  ok
    
    What does it do? Just read from left to right "40 PIN ---- 1ma SOURCE --- OPEN DRAIN" selects P40 for 1ma source current with an open drain (float). (MISTAKE BTW)

    The pin drive modes take effect when we apply a function such as HZ or PWM etc and in this case it blinks 5 times a second.

    Then "100 1000 1 PWM" sets the pin to 10% (100:1000) duty-cycle PWM with a prescale of 1. So the LED is very dim.
    TAQOZ# 40 PIN   1K5 SOURCE   FAST SINK   100 1000 1 PWM  ok
    

    Then we change to 50% duty.
    TAQOZ# 500 1000 1 PWM  ok
    

    Next up I will turn the pin into an analog input and measure the surrounding light levels after which I will put it into touch sense mode by pulsing and reading the LED.

    EDIT: backing up all my changes to the SD boot file.
    TAQOZ# MOUNT CARD: SANDISK   SD SL08G REV$80 #1426921825 DATE:2016/2 ok
    TAQOZ#   ok
    TAQOZ# BACKUP BIX SUCCESS!  ok
    TAQOZ#
    

    EDIT: If only we had a TAQOZ TEAM - to help fill in the gaps and build apps.
  • Peter,
    Could you please explain how "1ma SOURCE" works to actually limit the current through the pin?

    Thanks
    Tom
  • You just use different gate dimensions to set the channel resistance in a VLSI FET. Presume there's
    just a set of FETs in parallel to drive the pin, separately enabled.
  • If only we had a TAQOZ TEAM - to help fill in the gaps and build apps.

    Count me in Peter!

    1) I suggest that we create a TAQOZ repository on https://github.com/parallaxinc/ so that people who want to contribute code and docs and fix errors could make pull requests. It would just be a matter of creating a repo from your dropbox folder and converting the doc to markdown.

    2) I started making a driver for a Nokia 5110 LCD. Your current SPI driver is too fast at 180MHz for the LCD, I had to set the clock speed at SLOW (40 MHz) to make it work. What would you suggest? Making a second SPI driver in Forth with adjustable speed?

    3) For the Nokia 5110, there is a font I need to put in memory. Each character is 5 bytes. What is the best way to initialize an array in memory with Forth?

    I saw the code below but I don't quite understand the [C] and GRAB.
    CREATE FONT5X7
    $60 7 * ALLOT
    FONT5X7 $60 7 * ERASE
    
    pre ,,
    	[C] GRAB
    	$20 - 7 * FONT5X7 + SWAP ( adr str ) 1+
    	7 FOR
    	 0 OVER 5 ADO 2* I C@ 1 AND OR LOOP ( adr str val )
    	 3RD C! ( adr str ) 5 + SWAP 1+ SWAP
    	NEXT
    	2DROP
    	;
    
    "  00000000000000000000000000000000000" $20 ,,
    "  00100001000010000100001000000000100" $21 ,,
    "  01010010100101000000000000000000000" $22 ,,
    


    I also tried to test the TABLE word, but it does not seem to work with TAQOZ? (it fails after the second |)
    TABLE #bits	0 | 1 | 1 | 2 | 1 | 2 | 2 | 3 | 0 | 1 | 1 | 2 | 1 | 2 | 2 | 3 |
    
  • P2-ES V2 BOOT IMAGE (updated link)

    For anyone who wants to have a play, I have a new V2 boot image. The new V2 kernel is a minimal precompiled kernel with most of the higher level functions metacompiled (pasting source to TAQOZ).
    Tried 2 SD cards with the same result (boots up, runs TAQOZ V2, but does not allow accessing the file system of the SD card)... The SD cards were formatted as MS-DOS (FAT) on my macOS system. This formatting has worked in the past on V1.0 (see below). MOUNT, BACKUP BIX & DIR give "ERROR - INVALID PARTITION" errors, but .DISK does respond
    TAQOZ# MOUNT ---    ERROR - INVALID PARTITION
    
    0 lines and 10,934 bytes compiled,  with 0 errors in 9,491ms 
    ----------------------------------------------------------------
    TAQOZ# .DISK --- CS:60 SO:58 SI:59 CK:61 
    
                       *** CID *** 
        MANUFACTURER.................... SAMSUNG  
        OEM ID.......................... SM
        PRODUCT NAME.................... 00000
        REV............................. $10
        SERIAL#......................... 1377153821
        MANUFACTURED.................... 2014/3
        CRC............................. $CF 
    
                  *** OCR REGISTER *** 
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks 
        TRANSFER SPEED.................. 50Mbps 
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 7,707MB
        Read Current @VDD min........... 100ma
        Read Current @VDD max........... 10ma
        Write Current @VDD min.......... 60ma
        Write Current @VDD max.......... 25ma
    
        SECTOR READ SPEEDS.............. 472us,483us,483us,472us,483us,472us,483us,472us,
        BLOCK READ RATE................. 2,274kB/second @180MHz
    
                *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... NOT FORMATTED 
        CHS START....................... 1023,255,63
        CHS END......................... 1023,255,63
        FIRST SECTOR.................... $0000_1000
        TOTAL SECTORS................... 16,059,392 = 8,222MB
    
    
    ----------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V2.0 'CHIP' 180MHz 190123-0930
    

    FYI: What macOS says about the SD card (similar for both SD cards used: 1 Samsung, 1 Phison)
    Formatting disk2s1 as MS-DOS (FAT) with name TAQOZ
    512 bytes per physical sector
    /dev/rdisk2s1: 15403264 sectors in 240676 FAT32 clusters (32768 bytes/cluster)
    bps=512 spc=64 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=8192 drv=0x80 bsec=15407104 bspf=1881 rdcl=2 infs=1 bkbs=6
    
    Mounting disk
    
    Operation successful.
    
    Volume type : Physical Device
    BSD device node : disk2
    Connection : USB
    Device tree path : IODeviceTree:/PCI0@0/XHC1@14
    Writable : No
    Is case-sensitive : No
    Volume capacity : 7,892,631,552
    Available space (Purgeable + Free) : 0
    Purgeable space : 0
    Free space : 0
    Used space : 7,892,631,552
    Owners enabled : No
    Is encrypted : No
    Can be verified : No
    Can be repaired : No
    Bootable : No
    Journaled : No
    Disk number : 2
    Media name : APPLE SD Card Reader Media
    Media type : Generic
    Ejectable : Yes
    Solid state : No
    S.M.A.R.T. status : Not Supported
    
    Volume name : TAQOZ
    Volume type : Unknown
    BSD device node : disk2s1
    Mount point : /Volumes/TAQOZ
    File system : MS-DOS (FAT32)
    Connection : USB
    Device tree path : IODeviceTree:/PCI0@0/XHC1@14
    Writable : Yes
    Is case-sensitive : No
    File system UUID : 1D9F5EB1-B37E-3488-9766-158C781B66A6
    Volume capacity : 7,888,437,248
    Available space (Purgeable + Free) : 7,884,374,016
    Purgeable space : 0
    Free space : 7,884,374,016
    Used space : 4,063,232
    Owners enabled : No
    Is encrypted : No
    System Integrity Protection supported : No
    Can be verified : Yes
    Can be repaired : Yes
    Bootable : No
    Journaled : No
    Disk number : 2
    Partition number : 1
    Media name : 
    Media type : Generic
    Ejectable : Yes
    Solid state : No
    S.M.A.R.T. status : Not Supported
    Parent disks : disk2
    

    With TAQOZ v1.0, MOUNT & DIR show the following (Note: macOS does add several "._" & ".__" files to any directory that gets touched by macOS. Spotlight & file system event processes add them :-( Those files are normally just ignored by Windows. :
    TAQOZ#   Parallax P2  .:.:--TAQOZ--:.:.  V1.0--142          180530-0135
    TAQOZ# MOUNT .SM00000 4040_111A TAQOZ      32k 7,523M ok
    TAQOZ# DIR 
    .SM00000 4040_111A TAQOZ      32k 7,523M
    TAQOZ        $0000_2E52   2019.01.23.09.58   0
    B0 0    .    $FFC0_2E52   2107.15.31.31.63   4,294,967,295
     . S p o. t  $1A00_2E52   1980.01.13.00.03   3,211,350
    SPOTLI~1     $0000_2F12   2019.01.23.09.56   0
    A. f s e. v  $1CC0_2E52   1980.00.00.00.03   4,294,967,295
    FSEVEN~1     $0000_3912   2019.01.23.09.56   0
    _BOOT_P2.BIB $0000_4F52   2018.12.27.06.48   131,072
     B      .    $FFC0_2E52   2107.15.31.31.63   4,294,967,295
     . _ _ B. O  $1400_2E52   1980.01.14.00.01   4,784,194
     _BOOT~1.BIB $0000_3FD2   2019.01.23.09.57   4,096
    _BOOT_P2.BIN $0000_5052   2018.12.27.06.48   131,072
     N      .    $FFC0_2E52   2107.15.31.31.63   4,294,967,295
     . _ _ B. O  $1400_2E52   1980.01.14.00.01   4,784,194
     _BOOT~1.BIN $0000_4092   2019.01.23.09.57   4,096
    _BOOT_P2.BIX $0000_5152   2019.01.23.08.39   131,072
     X      .    $FFC0_2E52   2107.15.31.31.63   4,294,967,295
     . _ _ B. O  $1400_2E52   1980.01.14.00.01   4,784,194
     _BOOT~1.BIX $0000_40D2   2019.01.23.09.57   4,096
    

    Not sure why TAQOZ v2.0 would see a partitioning error when v1.0 does not.

    dgately
  • jmgjmg Posts: 15,173
    twm47099 wrote: »
    Could you please explain how "1ma SOURCE" works to actually limit the current through the pin?

    There are different hardware pin modes in P2, some with softer drive designed for saving a resistor.
    The 1mA is nominal, and will follow a usual MOSFET load line.
    260px-IvsV_mosfet.svg.png

    that will also vary with temperature and process.
    I've not seen a P2 load line plot yet ?
  • PublisonPublison Posts: 12,366
    edited 2019-01-23 19:09
    Tried 2-32GB cards. One formatted with SD.org format suggested software, and one with Win10 formatter, FAT32. As @dgately found, both would not MOUNT and DIR. They both report FAT16 under TAQOS.
    Both woked fine under VER1.1.
    ----------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V2.0 'CHIP' 180MHz 190123-0930
    ----------------------------------------------------------------
    TAQOZ# MOUNT    ERROR - INVALID PARTITION
    
    ----------------------------------------------------------------
    TAQOZ# DIR    ERROR - INVALID PARTITION
    
    ----------------------------------------------------------------
    TAQOZ# .DISK CS:60 SO:58 SI:59 CK:61
    
                       *** CID ***
        MANUFACTURER.................... SANDISK
        OEM ID.......................... SD
        PRODUCT NAME.................... ACLCD
        REV............................. $80
        SERIAL#......................... 2840131272
        MANUFACTURED.................... 2017/3
        CRC............................. $ED
    
                  *** OCR REGISTER ***
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER ***
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks
        TRANSFER SPEED.................. 50Mbps
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 31,166MB
        Read Current @VDD min........... 35ma
        Read Current @VDD max........... 45ma
        Write Current @VDD min.......... 60ma
        Write Current @VDD max.......... 10ma
    
        SECTOR READ SPEEDS.............. 702us,496us,473us,556us,493us,679us,474us,494us,
        BLOCK READ RATE................. 2,277kB/second @180MHz
    
                *** PARTITION TABLES ***
        PARTITION....................... 0 INACTIVE
        FILE SYSTEM..................... FAT16
        CHS START....................... 0,193,1
        CHS END......................... 1023,255,63
        FIRST SECTOR.................... $0000_1000
        TOTAL SECTORS................... 31,130,112 = 15,938MB
    ----------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V2.0 'CHIP' 180MHz 190123-0930
    ----------------------------------------------------------------
    TAQOZ# .SD CS:60 SO:58 SI:59 CK:61
    
                       *** CID ***
        MANUFACTURER.................... SANDISK
        OEM ID.......................... SD
        PRODUCT NAME.................... ACLCD
        REV............................. $80
        SERIAL#......................... 2840131272
        MANUFACTURED.................... 2017/3
        CRC............................. $ED
    
                  *** OCR REGISTER ***
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER ***
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks
        TRANSFER SPEED.................. 50Mbps
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 31,166MB
        Read Current @VDD min........... 35ma
        Read Current @VDD max........... 45ma
        Write Current @VDD min.......... 60ma
        Write Current @VDD max.......... 10ma
    
        SECTOR READ SPEEDS.............. 698us,495us,473us,554us,494us,680us,474us,494us,
        BLOCK READ RATE................. 2,277kB/second @180MHz ok
    TAQOZ#
    

    EDIT: All tests are on the P2-EVAL board.
  • I can DIR same SD under Ver1.0 under Cold Start.
    Cold start
    ----------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V1.0--142          180530-0135
    ----------------------------------------------------------------
    TAQOZ# MOUNT .SDACLCD 695D_D37C P2_BOOT    32k 30,432M ok
    TAQOZ# DIR
    .SDACLCD 695D_D37C P2_BOOT    32k 30,432M
    P2_BOOT      $0000_5F80   1980.00.00.00.00   0
    B  I n f. o  $1D00_5F80   1980.03.15.00.03   110
     S y s t. e  $1BC0_5F80   1980.03.21.00.03   6,619,245
    SYSTEM~1     $0000_6040   2019.01.23.10.50   0
     B I X  .    $FFC0_5F80   2107.15.31.31.63   4,294,967,295
     _ B O O. T  $0800_5F80   1980.01.20.00.01   3,014,697
     BOOT_~1.BIX $0000_60C0   2019.01.23.08.36   131,072
    _BOOT_P2.BIX $0000_60C0   2019.01.23.08.36   131,072
     ok
    TAQOZ#
    
  • PublisonPublison Posts: 12,366
    edited 2019-01-23 19:11
    Under Ver2.0. a xx BLINK turns on the LED. I does not blink.

    EDIT:All test are on the P2 Eval board. Peter, do you have an EVAL board?
  • Ok - re the SD mounting issues. I've always been worried about the maximum clock speed I can use on the ES board due to the very long traces and capacitance. I tried another plain Sandisk 4GB card and it wouldn't mount properly. So I changed the P2 clock rate to 120MHz instead of 180MHz and now it works fine but no directory. However that is because it had no directory and whichever way it was formatted, it didn't even have an OEM or volume name. So I should at least report *empty directory" I guess.

    I then put some files onto the card and did another MOUNT at 120MHz with the result posted below. This is an older non-Ultra card manufactured in 2010.

    Now I have to think about how to handle SD cards on the ES with the extra capacitance. My P2D2 I can run at 240MHz comfortably without extra cooling and the SD card works fine.

    TAQOZ# MOUNT --- CARD: SANDISK   SD SU04G REV$80 #3538248202 DATE:2010/10 ok
    TAQOZ# DIR --- 
      0:   BIRD    .BMP $0000_4040   2018-12-24 06:54   BMz.......z...l.   308,346
      1:   _BOOT_P2.BIB $0000_42C0   2018-12-24 06:48   ................   131,072
      2:   _BOOT_P2.BIN $0000_43C0   2018-12-24 06:48   ................   131,072
      3:   BUZZ    .BMP $0000_44C0   2018-11-24 01:53   BMz.......z...l.   308,346
      4:   DRAGON  .BMP $0000_4740   2018-10-24 01:21   BMz.......z...l.   308,346
      5:   EYEGOD  .BMP $0000_49C0   2018-10-24 04:17   BMz.......z...l.   308,346
      6:   FACE    .BMP $0000_4C40   2018-10-24 04:03   BMz.......z...l.   308,346
      7:   FIRE    .BMP $0000_4EC0   2018-11-24 23:51   BMz.......z...l.   308,346
      8:   LMMS    .BMP $0000_5140   2018-10-24 01:01   BM8.......6...(.   308,280
      9:   LOVE    .WAV $0000_53C0   2015-02-24 08:06   RIFF.?..WAVEfmt    14,630,692
     10:   MCQUEEN .BMP $0000_C380   2018-10-24 04:19   BMz.......z...l.   308,346
     11:   P2D2A   .BMP $0000_C600   2018-12-24 14:26   BMz.......z...l.   308,346
     12:   POPCORN .WAV $0000_C880   2012-11-24 13:26   RIFF.y1.WAVEfmt    3,242,394
     13:   SPIDEY  .BMP $0000_E140   2018-10-24 04:24   BMz.......z...l.   308,346
     14:   SUNSET  .BMP $0000_E3C0   2018-10-24 04:13   BMz.......z...l.   308,346
     15:   TIGER   .BMP $0000_E640   2018-12-24 14:23   BMz.......z...l.   308,346
     16:   WARPEACE.TXT $0000_E8C0   2015-08-24 07:27   The Project Gute   3,226,652
     17:   WARWORLD.TXT $0001_0180   2017-11-24 13:42   ...The Project G   365,413
     18:   WEBSTERS.TXT $0001_0480   2017-11-24 12:59   ...The Project G   28,956,348  ok
    TAQOZ# .DISK --- CS:60 SO:58 SI:59 CK:61 
    
                       *** CID *** 
        MANUFACTURER.................... SANDISK  
        OEM ID.......................... SD
        PRODUCT NAME.................... SU04G
        REV............................. $80
        SERIAL#......................... 3538248202
        MANUFACTURED.................... 2010/10
        CRC............................. $A3 
    
                  *** OCR REGISTER *** 
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks 
        TRANSFER SPEED.................. 50Mbps 
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 3,872MB
        Read Current @VDD min........... 10ma
        Read Current @VDD max........... 45ma
        Write Current @VDD min.......... 25ma
        Write Current @VDD max.......... 10ma
    
        SECTOR READ SPEEDS.............. 889us,978us,782us,782us,781us,782us,781us,782us,
        BLOCK READ RATE................. 1,508kB/second @120MHz
    
                *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... FAT32 CHS
        CHS START....................... 1,2,3
        CHS END......................... 960,48,48
        FIRST SECTOR.................... $0000_2000
        TOTAL SECTORS................... 7,736,320 = 3,960MB
    
                *** FAT32 INFORMATION *** 
        OEM NAME........................         
        bytes/sector.................... 512
        sectors/cluster................. 64 = 32kB clusters
        reserved........................ A0 18 
        Number of FATs.................. 2
        reserved........................ 00 00 00 00 F8 00 00 3F 00 80 00 00 20 00 00 
        Sectors in partition............ 7,736,320 = 3,960MB
        Sectors/FAT..................... 944
        FAT FLAGS....................... 0
        FAT32 VERSION................... 00 00 
        ROOT CLUSTER.................... $0000_0002 SECTOR: $0000_4000
        FILE INFO SECTOR................ $0001
        BACKUP BOOT SECTOR.............. $0006
        reserved........................ 00 00 00 00 00 00 00 00 00 00 00 00 
        Logical Drive#.................. 384
        Extended signature.............. $29 good
        Partition Serial#............... $3264_3565 845428069
        Volume Name..................... NO NAME    
        FAT name........................ FAT32    ok
    TAQOZ#
    
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-01-23 22:08
    I got the exact same card that wasn't running properly on the ES until I dropped the clock to 120MHz, but ran it on the P2D2 at 240MHz without any problems. Argghhh. Now I have do a kludge just for the ES to slow it down.
    TAQOZ# MOUNT --- CARD: SANDISK   SD SU04G REV$80 #3538248202 DATE:2010/10 ok
    TAQOZ# DIR --- 
      0:   BIRD    .BMP $0000_4040   2018-12-24 06:54   BMz.......z...l.   308,346
      1:   _BOOT_P2.BIB $0000_42C0   2018-12-24 06:48   ................   131,072
      2:   _BOOT_P2.BIN $0000_43C0   2018-12-24 06:48   ................   131,072
      3:   BUZZ    .BMP $0000_44C0   2018-11-24 01:53   BMz.......z...l.   308,346
      4:   DRAGON  .BMP $0000_4740   2018-10-24 01:21   BMz.......z...l.   308,346
      5:   EYEGOD  .BMP $0000_49C0   2018-10-24 04:17   BMz.......z...l.   308,346
      6:   FACE    .BMP $0000_4C40   2018-10-24 04:03   BMz.......z...l.   308,346
      7:   FIRE    .BMP $0000_4EC0   2018-11-24 23:51   BMz.......z...l.   308,346
      8:   LMMS    .BMP $0000_5140   2018-10-24 01:01   BM8.......6...(.   308,280
      9:   LOVE    .WAV $0000_53C0   2015-02-24 08:06   RIFF.?..WAVEfmt    14,630,692
     10:   MCQUEEN .BMP $0000_C380   2018-10-24 04:19   BMz.......z...l.   308,346
     11:   P2D2A   .BMP $0000_C600   2018-12-24 14:26   BMz.......z...l.   308,346
     12:   POPCORN .WAV $0000_C880   2012-11-24 13:26   RIFF.y1.WAVEfmt    3,242,394
     13:   SPIDEY  .BMP $0000_E140   2018-10-24 04:24   BMz.......z...l.   308,346
     14:   SUNSET  .BMP $0000_E3C0   2018-10-24 04:13   BMz.......z...l.   308,346
     15:   TIGER   .BMP $0000_E640   2018-12-24 14:23   BMz.......z...l.   308,346
     16:   WARPEACE.TXT $0000_E8C0   2015-08-24 07:27   The Project Gute   3,226,652
     17:   WARWORLD.TXT $0001_0180   2017-11-24 13:42   ...The Project G   365,413
     18:   WEBSTERS.TXT $0001_0480   2017-11-24 12:59   ...The Project G   28,956,348  ok
    TAQOZ# .DISK --- CS:60 SO:58 SI:59 CK:61 
    
                       *** CID *** 
        MANUFACTURER.................... SANDISK  
        OEM ID.......................... SD
        PRODUCT NAME.................... SU04G
        REV............................. $80
        SERIAL#......................... 3538248202
        MANUFACTURED.................... 2010/10
        CRC............................. $A3 
    
                  *** OCR REGISTER *** 
        OCR VALUE....................... $C0FF_8000
        VOLTAGE RANGE................... 2.7V to 3.6V
    
                  *** CSD REGISTER *** 
        CARD TYPE....................... SDHC
        TACC LATENCY.................... 1ms+1400 clocks 
        TRANSFER SPEED.................. 50Mbps 
        CLASSES......................... 010110110101
        BLKLEN.......................... 512
        SIZE............................ 3,872MB
        Read Current @VDD min........... 10ma
        Read Current @VDD max........... 45ma
        Write Current @VDD min.......... 25ma
        Write Current @VDD max.......... 10ma
    
        SECTOR READ SPEEDS.............. 720us,769us,611us,612us,613us,613us,612us,613us,
        BLOCK READ RATE................. 2,988kB/second @240MHz
    
                *** PARTITION TABLES *** 
        PARTITION....................... 0 INACTIVE 
        FILE SYSTEM..................... FAT32 CHS
        CHS START....................... 1,2,3
        CHS END......................... 960,48,48
        FIRST SECTOR.................... $0000_2000
        TOTAL SECTORS................... 7,736,320 = 3,960MB
    
                *** FAT32 INFORMATION *** 
        OEM NAME........................         
        bytes/sector.................... 512
        sectors/cluster................. 64 = 32kB clusters
        reserved........................ A0 18 
        Number of FATs.................. 2
        reserved........................ 00 00 00 00 F8 00 00 3F 00 80 00 00 20 00 00 
        Sectors in partition............ 7,736,320 = 3,960MB
        Sectors/FAT..................... 944
        FAT FLAGS....................... 0
        FAT32 VERSION................... 00 00 
        ROOT CLUSTER.................... $0000_0002 SECTOR: $0000_4000
        FILE INFO SECTOR................ $0001
        BACKUP BOOT SECTOR.............. $0006
        reserved........................ 00 00 00 00 00 00 00 00 00 00 00 00 
        Logical Drive#.................. 384
        Extended signature.............. $29 good
        Partition Serial#............... $3264_3565 845428069
        Volume Name..................... NO NAME    
        FAT name........................ FAT32    ok
    TAQOZ#
    
  • Thanks for the update Peter.
  • Hi Peter,

    Now I've noticed that, when I load TAQOZ v1.1 from the SD card, the USB power consumption rises and stays at 270mA. In comparison, the version that is hard coded causes the board to consume just 40mA. Also, the DC-DC inductors squeak audibly. That is happening? Is this caused by the higher clock setting?

    Kind regards, Samuel Lourenço
Sign In or Register to comment.