-
I did think about splitting the low level include files when first adding AVR support, and came to the conclusion it would be easier to leave all related subroutines in a single file.
The main reason for not splitting the files is that there would be quite a bit of duplication - if you look at system.h, you'll see that some routines (from memory, division and 16-bit multiply) are the same for...
2009-11-02 16:04:48 UTC in Great Cow BASIC
-
There are a few things that need changing in your code.
Try using the built in USART receive function, it'll take care of clearing the error flags for you. To do this, you'll need to change your rec_data sub to this:
sub rec_data
set portc.0 on
If RCIF On Then
'poke (rloc, rcreg)
HSerReceive NewDataIn
Poke rloc, NewDataIn
rloc = rloc + 1
if rloc = 239 then...
2009-10-24 04:50:51 UTC in Great Cow BASIC
-
w_cholmondeley changed the public information on the Great Cow BASIC project.
2009-10-18 13:48:47 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:38:01 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:36:01 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:34:01 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:33:01 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:14:01 UTC in Great Cow BASIC
-
w_cholmondeley made 1 file-release changes.
2009-10-18 08:12:01 UTC in Great Cow BASIC
-
w_cholmondeley made 2 file-release changes.
2009-10-18 08:11:01 UTC in Great Cow BASIC