| Details | Message |
|---|
Author Rona A Posted 3-Dec-2009 16:48 GMT Toolset C51 |  p89v51 vs p89c51 Rona A Hi I have aprogram that runson p89c51 and p89v51 when I am usunf an exact baudrate divider. I had to change my crystal and I have 3% error. the p89c51 keeps working fine and the p89v51 works in an unexpected way. Does someone experienced such a problem? |
|
Author cheng bei Posted 4-Dec-2009 04:24 GMT Toolset C51 |  RE: p89v51 vs p89c51 cheng bei In my opinion, The p89V51 has four levels interrupt, two control bytes. This is different from the p89C51 . So you have to change the grogram of p89C51 to suit for the p89V51. |
|
Author erik malund Posted 4-Dec-2009 23:23 GMT Toolset C51 |  no, you don't erik malund The p89V51 has four levels interrupt, two control bytes. This is different from the p89C51 So you have to change the grogram of p89C51 to suit for the p89V51. No, you don't the V51 defaults to 'plain vanilla' IP Erik |
|
Author cheng bei Posted 4-Dec-2009 04:34 GMT Toolset C51 |  RE: p89v51 vs p89c51 cheng bei you can refer below webline: http://forum.flashmagictool.com/index.php?topic=2878.msg2878 |
|
Author Rona A Posted 5-Dec-2009 17:24 GMT Toolset C51 |  RE: p89v51 vs p89c51 Rona A Thanks The original project was developed on P89c51RD2 with 22 MHZ. when we moved to P89V51 it worked OK. now we changed the clock input to about 35MHZ. the p89c51 keep working as expected and the p98v51 works but in an unstable way. We compile the project for the "V" device. the difference between the original to the current exept for the crystal speed is that the baud rate has an error of 3% which was not in the original project. can this be the problem? does the "V" version is more sensetive? |
|
Author Hans-Bernhard Broeker Posted 5-Dec-2009 22:03 GMT Toolset C51 |  RE: p89v51 vs p89c51 Hans-Bernhard Broeker can this be the problem? That's quite impossible to say --- you haven't spent as much as a single word on describing what "the problem" actually is! |
|
Author Rona A Posted 5-Dec-2009 23:06 GMT Toolset C51 |  RE: p89v51 vs p89c51 Rona A The problem is just what I wrote .the p89c51 works in both cases the same. the p89v51 works on the slow speed just like the p89c51 but on the higher speed , the communication sometimes works and sometime not... i can not figure why only part of the communication works... the problem is that the p89v51 does not behave like the p89c51 in the higher speed. it becomes unstable. |
|
Author erik malund Posted 6-Dec-2009 01:15 GMT Toolset C51 |  are you running in X1 mode? erik malund . |
|
Author Rona A Posted 6-Dec-2009 11:18 GMT Toolset C51 |  RE: are you running in X1 mode? Rona A No, X2 |
|
Author erik malund Posted 6-Dec-2009 13:21 GMT Toolset C51 |  read the datasheet erik malund the max crystal for X2 is 20MHz |
|
Author Rona A Posted 6-Dec-2009 17:33 GMT Toolset C51 |  RE: read the datasheet Rona A I am using 17.734 its about 35.... after X2 configuration |
|
Author erik malund Posted 6-Dec-2009 17:49 GMT Toolset C51 |  just to see erik malund try T2 clocking and get the 3% error removed. You are running on the edge of acceptable and at that point a capacitor tolerance can make the difference. Erik |
|
Author Rona A Posted 7-Dec-2009 18:23 GMT Toolset C51 |  RE: just to see Rona A Thanks! with timer 2 it works. (0.49% error) It means that we should not take for granted that the p89v51 is 1 to 1 substitute for the p89c51... |
|
Author erik malund Posted 7-Dec-2009 19:46 GMT Toolset C51 |  no erik malund It means that we should not take for granted that the p89v51 is 1 to 1 substitute for the p89c51... NO, It means that we should not take for granted that ANY 'identical' chip is 1 to 1 substitute for the p89c51 when running outside margins Erik |
|