Thanks ! How could I miss that, I triple-checked particularly these registers... I'll update my code and test asap.
thanks again Seb 2011/3/25 Rob Hamerling <[email protected]> > > Hi Seb, > > On 2011/03/24 21:40, Sebastien Lelong wrote: > > Some more feedback. I'm running this chip using a 16MHz crystal. I took >> your sample, modified 20_000_000 to 16_000_000, matching my Xtal speed. >> Indeed, LED is blinking, but not at proper rate (compared visually with >> jaluino medium, which I know working good). Fuses are exactly the same, >> PLLDIV/CPUDIV disabled, etc... Actually, it's as though it was running >> twice faster: if I specify 8_000_000, it seems to blink properly. >> > > I happen to have a testboard for 28-pins PICs and 16 MHz resonator. > You are right: the led is blinking at 1 Hz, not at 2 Hz as it is supposed > to do. Reason: wrong CPUDIV, should be: > > pragma target CPUDIV P1 -- no cycle divisor > > With this the LED blinks at 2 Hz. > I must have overlooked the slow blinking frequency! > I'll have to check if this is true for other PICs with CPUDIV and I may > have to adapt the samples. > > > Some more test using serial: specifying 16MHz just gives garbage chars. >> Specifying 8MHz, receiving chars works good, but sending chars doesn't >> work ! >> > > I've taken the sample 18f2450_serial_hw_int_cts.jal, modified the PIC of > the include to 18f27j53, set the clock to 16 MHz and adapted config bits > settings to what the 18f27j53 supports. > It runs fine (at 115200 bps), both input and output are OK. > > I also tested with the internal oscillator at 4 and 8 MHz and with serial > speeds of 2400 and 9600 bps: no problem! > > > 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. > > -- Sébastien Lelong http://www.sirloon.net http://sirbot.org -- 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.
