Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Micromite beta 8
Page 2 of 2 | |||||
Author | Message | ||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
Rob, thanks I have it. I just checked my PCF8583 datasheet and it was even older. |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1873 |
Using the example code for SPI on page 47 I changed the pin in line one to Pin(15) and I get an error 'invalid pin'. Page 6 says Pin(15) can be used for Digital I/O. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Are you running the latest beta? Pin 15 did not work with one of the earlier versions. Geoff Geoff Graham - http://geoffg.net |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1873 |
No. Running Beta7 Will load Beta8. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Hmm, from memory beta 7 fixed that issue. Try it with beta 8 and if it still does not work distil the problem down to a few lines of code and post it here. Then I can test it. I can use pin 15 on beta 8 with no issues. Geoff Geoff Graham - http://geoffg.net |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6101 |
LINE INPUT #nbr ... waits for a LF character rather than a CR. My preference would be for either CR or LF (I am a Windows programmer after all...) Jim VK7JH MMedit  MMBasic Help |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1873 |
Geoff, Dim arg$(20)
SetPin 15,8:Pin(15) = 1 SPI OPEN 5000000, 3, 8 Pin(15) = 0 b=SPI(&h3b) I switched to Pin(10) and the code is OK. But with Pin(15) I get the error message 'Invalid Pin'. I'm now using Beta8. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2817 |
Paul, Please clarify: Are you using a PIC32MX250 or PIC32MX[B150? I believe Pins 15 & 23 are not available for use on the MX250. For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1873 |
Thanks WhiteWizzard, I was using the 150s and had one 250 which I started to use and forgot about Pins 15 & 23. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Good point, another thing to hunt down. Geoff Geoff Graham - http://geoffg.net |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6101 |
There is a problem displaying negative numbers. for n = -2 to 2
print n print str$(n) next n for n = 2 to -2 step -1 print n print str$(n) next n and then try: PRINT -1 Jim VK7JH MMedit  MMBasic Help |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Yes, there is a serious bug in beta 8 regarding printing numbers. I introduced it while implementing the extensions to the STR$() function I hope to have a new release out soon that fixes that bug and also terminates a LINE INPUT on a carriage return (or line feed). Thanks for the reports, Geoff Geoff Graham - http://geoffg.net |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Check your inboxes as I have just sent out beta 9. This fixes a bug with printing negative numbers which caused serious mayhem. Also fixed is a bug which caused pin 2 and 3 on the 28 pin chip and pins 19 and 20 on the 44 pin chip to act strange when I2C was used. Other, less important fixes are: - LINE INPUT from a serial port now terminates on a carriage return. - You can specify a negative number for the second argument of the extended STR$() function. This will force the display of a + sign as well as padding with space characters as before. Geoff Geoff Graham - http://geoffg.net |
||||
Page 2 of 2 |
Print this page |