Anonymous

Project:Sanguinololu Thermocouple: Difference between revisions

From London Hackspace Wiki
Line 130: Line 130:
More information can be found out specifically  about the MAX31855KASA+ [http://www.maximintegrated.com/datasheet/index.mvp/id/7273 here]. The most important piece of information from this is the bit map of the 32bit data packet.
More information can be found out specifically  about the MAX31855KASA+ [http://www.maximintegrated.com/datasheet/index.mvp/id/7273 here]. The most important piece of information from this is the bit map of the 32bit data packet.
[[File:MAX31855 memory map.PNG]]
[[File:MAX31855 memory map.PNG]]
<!--Sample code:
<code>
signed int getTemp(pSCK, pMISO, pCS) {
    unsigned char buffer[4];
    buffer[0] = shiftIn(pMISO, pSCK, MSBFIRST);
    buffer[1] = shiftIn(pMISO, pSCK, MSBFIRST);
    buffer[2] = shiftIn(pMISO, pSCK, MSBFIRST);
    buffer[3] = shiftIn(pMISO, pSCK, MSBFIRST);
    if(buffer[1] & 0x01)
    {
        ?
        ?
    }
}
</code>-->


/Lines to change in Sprinter/Marlin/etc... /
/Lines to change in Sprinter/Marlin/etc... /