| Details | Message |
|---|
Read-Only Author Elmac Chaygap Posted 8-Jul-2008 02:39 Toolset None |  How do you make it go Elmac Chaygap Hello, My name is Elmac Chaygap. I am a student at the school and I am doing a course on Physics and Electronics. One day I want to be a manager but I think I will be an Engineer first. I am working on a project with a processor and memory. The problem is that it works very slowly. Can anyone tell me how I can change the speed by making it faster? |
|
Read-Only Author Tamir Michael Posted 8-Jul-2008 02:46 Toolset None |  Stop trolling and spamming please Tamir Michael Enough is enough. |
|
Read-Only Author Per Westermark Posted 8-Jul-2008 02:47 Toolset None |  RE: How do you make it go Per Westermark Nitro? You really have to tell more. What processor. Do you mean external memory? How have you configured the processor? Is it only slow when accessing external memory? In what way is it slow? Do come back with a long and nice description of your project. What you have. What you have tested. What happened. What you expected to happen. |
|
Read-Only Author Elmac Chaygap Posted 8-Jul-2008 02:58 Toolset None |  RE: How do you make it go Elmac Chaygap Hello, It is me, Elmac Chaygap. The project I have has a board. I think the processor is an 80C31 and it has some RAM (32KBYTE) and some EPROM (32KBYTE). I write the program with assembly and I burn the intelhex file to the EPROM. I get a letter from the serial number 0 and I change it to lower or upper and send it back. I use hyperterminal on the PC. When I get the character it takes a lon |
|
Read-Only Author Per Westermark Posted 8-Jul-2008 03:10 Toolset None |  RE: How do you make it go Per Westermark "it takes a lon" Are you using LonWorks (Echelon) communication? Please post your source code. How have you verified if the delay is on the PC side or in your assembly code? By the way: Are you required to write in assembler? C tends to be more productive. |
|
Read-Only Author Tamir Michael Posted 8-Jul-2008 03:35 Toolset None |  RE: How do you make it go Tamir Michael Elmac, Have you checked your external bus interface configuration to make sure there are no excessive wait states involved in memory access operations? are you sure it is your controller that is slow and not the PC side? have you tried running a demo program that demonstrates serial communication to verify that it is indeed your implementation? |
|
Read-Only Author erik malund Posted 8-Jul-2008 06:00 Toolset None |  RE: How do you make it go erik malund I think the processor is an 80C31 how is that for knowing what you work with anyhow if the OPs thought is correct there is no "external bus interface configuration" and no "wait states" now it would be nice to know what the Op thinks the clock is and what he thinks the SFRs are set at NAAH ... if the OP can not provide facts instead of thoughts, why bother Erik |
|
Read-Only Author John Malund Posted 8-Jul-2008 06:06 Toolset None |  Careful please John Malund It is people like him who give the clan a VERY bad reputation. |
|
Read-Only Author Elmac Chaygap Posted 8-Jul-2008 06:16 Toolset None |  Sorry Elmac Chaygap Hello, It is me again Elmac Chaygap. Sorry but the computer went poofy before. The writing on the processor says 80C31 so I think it is an 80C31. The crystal has 14M456 so I think it is 14.456MHz What is bad for me to think this? I do not have the circuit and do not know. I try to be sensible. Sorry I am not clever like everyone here! I set serial channel 0 for 9600 baud and it works so I think I have set the registers properly. The board has some links on but I do not know what they do. I asked the |
|
Read-Only Author Tamir Michael Posted 8-Jul-2008 06:24 Toolset None |  RE: Sorry Tamir Michael don't be sorry. this isn't class and you can ask what you want without fear or disturbing anybody. by the way, I am sorry for being a little rude before, I thought you were another one of these annoying trolls that appear here from time to time (yesterday we had a genius that claims to be able to compile entire programs in his head. if he is reading, I am curious: did you get the results of the CAT scan I recommended?). Now, let's start from scratch. you have a functioning system but it under performs. can you use a simulator to find the bottle neck? please try a demonstration program as I suggest in my previous post so that you can put the blame on something - PC or controller. and provide more details about your setup. that can help, too. |
|
Read-Only Author John Malund Posted 8-Jul-2008 06:32 Toolset None |  Don't think all Malunds are the same! John Malund Elmac, If you have access to an oscilloscope, check to see what your 80C31 is receiving and transmitting. Do the characters look right? If you can measure the time between receiving and transmitting, how much of a delay is there? You mentioned that you use hyperterminal. If you can, try another program. I have found that hyperterminal can sometimes confuse you with strange actions. Sometimes my copy just stops receiving anything until I close the program and restart it! Let us know the results. |
|
Read-Only Author Tamir Michael Posted 8-Jul-2008 06:36 Toolset None |  RE: Don't think all Malunds are the same! Tamir Michael Distinguished clan member and Elmac, 'TeraTerm Pro' is freeware and a good replacement for HyperTerminal. |
|
Read-Only Author John Malund Posted 8-Jul-2008 06:42 Toolset None |  TeraTerm Pro John Malund Tamir, I've never heard of that one, I'll hunt it out and give it a try. Thanks. |
|
Read-Only Author Elmac Chaygap Posted 8-Jul-2008 23:29 Toolset None |  Thank you Elmac Chaygap Hello, It is me again, Elmac Chaygap. Thank you John, Tamir and Per. You helped me find the problem. I managed to get a scope and saw that my board was sending a letter very quickly after getting a letter. So the board and my code worked properly. I then got teraterm and tried that and the problem was gone. I will never use hyperterminal again. I now think that I have a working board and some working code. Now I make it do more :) |
|
Read-Only Author erik malund Posted 8-Jul-2008 06:28 Toolset None |  a simple solution erik malund What is bad for me to think this? I do not have the circuit and do not know a simple solution: find out as long as you work with what you think it is the only help you can get is what someone think it could be. I set serial channel 0 for 9600 baud and it works so I think I have set the registers properly. that one is easy, does what you run across the serial show up in the other end correctly, if so, the setting of the baudrate is correct. I write the program with assembly post your code Erik |
|