Hi guys,

I just committed:

Log: Added sample of temperature controlled PC case fan.
Using a 12hv615 with single 12V DC power supply,
a TC77 or LM74 temperature sensor and
variable temperature dependent PWM duty cycle.

This is the debugged and tested version.
In my PC I'm currently running a version with debug code, using the serial_software library. This resulted at first in 'Out of data space'. Unfortunately the compiler doesn't report how much more memory would be needed. But I remembered a recent discussion about declaring 'shared' memory as 'non-shared' and I thought to simply try this trick to see if the debug code could remain.
The device file specifies:

pragma  data    0x40-0x6F
pragma  shared  0x70-0x7F
--
var volatile byte _pic_accum shared at 0x7E        -- (compiler)
var volatile byte _pic_isr_w shared at 0x7F        -- (compiler)

Since the compiler needs these last 2 bytes as shared memory, I changed the first 2 lines into:

pragma  data    0x40-0x7D
pragma  shared  0x7E-0x7F

And now the compiler succeeds and reports:

  Data area: 57 of 62 bytes used.

So the trick works not only in theory!

Regards, Rob.


--
R. Hamerling, Netherlands --- http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to