You probably have to make your own protocol and communicate between the 
two micros.


Each communications packet having something like:
1. Command (Read/Write)
2. Address (Where to read / write)
3. Data
4. CRC  (packet check sum to ensure integrity of command, address and data )



Irvan Nasrullah wrote:
>  I want to erase,write and read data program(PEROM) controller target 
> (AT89S51 and AT89S52) with Microcontroller Master(AT89S51). How to do 
> it(Source code)? Any body help me?
>     |================|                  |================|           
>     |                                |                  
> |                                |
>     |                        P1.5 |---------------> 
> |MOSI(P1.5)               |
>     |                        P1.6 |<--------------- 
> |MISO(P1.6)               |
>     |                        P1.7 |---------------> |SCK 
> (P1.7)               |
>     |                                |                  
> |                               |
>     |                                |                  
> |                               |
>     |Microcontroler           |                  
> |Microcontroler           |
>     |Master                      |                  
> |Target                      |
>     |AT89S51                  |                  
> |(AT89S51,                 |
>     |                               |                  | 
> AT89S52)                 |
>     |                               |                  
> |                                |
>     |                               |                  
> |                                |
>     |================|                 |================|
>     thx
>     irvan
>
> ------------------------------------------------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives answers 
> <http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC>,
>  
> not web links.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to