View previous topic :: View next topic |
Author |
Message |
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Mon Nov 16, 2015 10:36 am Post subject: 1wire reset error |
|
|
I have a problem with the 1wire reset
This gives this error
Error : 242 Line : 11 Data type of source and target variables do not match [R24 = PINC , 4] , in File : G:\TEMP\reset-test.bas
Error : 101 Line : 11 Can't find HW-register [ ] , in File : G:\TEMP\reset-test.bas
Error : 101 Line : 11 Can't find HW-register [ ] , in File : G:\TEMP\reset-test.bas
Code: |
$regfile = "m168pdef.dat"
$crystal = 8000000
$baud = 2400
$hwstack = 40
$swstack = 40
$framesize = 80
1wreset , Pinc , 4
end
|
Regards Paul
(BASCOM-AVR version : 2.0.7.8 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Nov 16, 2015 10:41 am Post subject: |
|
|
remove the first comma. _________________ Mark |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Mon Nov 16, 2015 10:47 am Post subject: |
|
|
Hello Mark
so help is incorrect as it shows it?
But still get this
Error : 101 Line : 11 Can't find HW-register [PORTA ] , in File : G:\TEMP\reset-test.bas
Error : 101 Line : 11 Can't find HW-register [PORTA ] , in File : G:\TEMP\reset-test.bas
I tried other ports that is why porta OK PORTC worked and PORTB but not PORTA ?
Regards Paul
Last edited by Paulvk on Mon Nov 16, 2015 10:53 am; edited 1 time in total |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Nov 16, 2015 10:53 am Post subject: |
|
|
yes i see that it shows this comma. if you look at the sample you will not find this comma.
when it does not work, show your new code. _________________ Mark |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Mon Nov 16, 2015 10:59 am Post subject: |
|
|
Hello Mark
These do not work >>>dummy it has not got one
Error : 101 Line : 11 Can't find HW-register [PINA ] , in File : G:\TEMP\reset-test.bas
Error : 101 Line : 11 Can't find HW-register [PINA ] , in File : G:\TEMP\reset-test.bas
Regards Paul |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Nov 16, 2015 11:06 am Post subject: |
|
|
yes it will not work on non-existing ports _________________ Mark |
|
Back to top |
|
|
|