Name:
readsilicon
Syntax:

READSILICON variable

Variable - is a byte variable to receive the silicon code value.

Description:

Read the silicon revision of an X2 part into variable.

Bits 7-5 PICAXE Type  
  000 reserved for future use  
  001 PICAXE-20X2 (PIC18F14K22)
  010 PICAXE-28X2-5V (PIC18F2520)
  011 PICAXE-40X2-5V (PIC18F4520)
  100 PICAXE-28X2 (PIC18F25K22)
  101 PICAXE-40X2 (PIC18F45K22)
  110 PICAXE-28X2-3V (PIC18F25K20)
  111 PICAXE-40X2-3V (PIC18F45K20)
Bits 4-0 Microchip Silicon Die Version  

The readsilicon command retrieves information about the silicon dies inside the microcontroller and loads it into a variable.

Do not confuse with the revision (user program) or the firmware version (PICAXE bootstrap version).

Applies To:
20X2, 28X2, 40X2
See Also:
Related Create:
    Share:
    Print:

    Reading the silicon code value

    This program will read the silicon code value in variable 'b1'

    Code Example:
    main:	readsilicon b1		; read silicon into b1
    Copy Code Submit an Example

    Submit Your Own Code!

    You must be logged in to submit code examples. Login now.

    Comments

    • Login to leave a comment.