My own 18f452 dev. board


+ Reply to Thread
Results 1 to 5 of 5

Thread: My own 18f452 dev. board1299 days old

  1. #1
    mahmood
    Guest mahmood's Avatar

    1 Not allowed!

    Cool My own 18f452 dev. board

    Hi,
    I did use this site to improve my knowledge. so now is time to share my little experiences.

    this circuit board is made to decrease testing procedure for developer. this an open project. protel PCB file is attached.
    Please don't use it for business.
    properties:

    pic18f452 20MHz
    2*16 bit a/d ad7705
    1kB EEPROM 24C02
    I2C bus
    SPI Bus
    RS458 with Max485
    12 + 5 + 3.3 volt in access
    usb serial port with RX - TX pin for serial programming
    in circuit programming with Vcc jumper.

    Click image for larger version

Name:	WP_20160424_15_29_26_Pro.jpg
Views:	32
Size:	97.7 KB
ID:	3014

    of course a couldn't found my ftdi232 chip to complete the board. you do it.
    Code:
    DEVICE 18F452
    
        CONFIG_START
        CONFIG_END
        DECLARE XTAL 20
        DECLARE LCD_TYPE ALPHA
        DECLARE LCD_DTPIN PORTD.0    
        DECLARE LCD_RSPIN PORTC.1
        DECLARE LCD_ENPIN PORTC.2
        DECLARE LCD_INTERFACE 4
        DECLARE LCD_LINES 2
        
        DECLARE SDA_PIN PORTB.1
        DECLARE SCL_PIN PORTB.0
        DECLARE SLOW_BUS ON
        
        INTCON = 000000
        T1CON  = 110101
        SET PIE1.0
        
        INPUT  PORTD.6
        INPUT  PORTD.4
        OUTPUT PORTD.5
        OUTPUT PORTD.7
        OUTPUT PORTC.0
        
        
        
        DIM TIME_OFFSET    AS WORD
        DIM TIMER          AS BYTE
        
        DIM COM_REG     AS BYTE         'AD7705 VARIABLES  
        DIM TEMP1       AS BYTE
        DIM AD_RESULT   AS WORD         'AD7705 ANALOG CONVERSATION RESULT 
        
          
        
        SYMBOL SO           = PORTD.6   ' DATA INPUT PIN FROM AD7705    
        SYMBOL SI           = PORTD.5   ' DATA OUTPUT PIN TO AD7705    
        SYMBOL READY        = PORTD.4   ' AD7705 READY PIN   
        SYMBOL SCK          = PORTD.7   ' Clock pin       
        
        SYMBOL SWDTEN       = WDTCON.0  'WDT SOFTWARE CONTROL BIT 
        
        SYMBOL LED          = PORTC.0
        
        CLS
        SET SWDTEN
        TIME_OFFSET = 3036              'TIMER 1 SHALL FILL BY 3035 UNTIL REMAIN 62500 WITH 10 INTERRUPTS PER SECOND  
        
        
        COM_REG  = $10                  '00010000   SETUP REGISTER  
        TEMP1    = $46                  '01000110    070    
        SHOUT SI,SCK,MSBFIRST,[COM_REG\8]
        SHOUT SI,SCK,MSBFIRST,[TEMP1\8]
        
        COM_REG = $20                   '00100000   CLOCK REGISTER  
        TEMP1   = $04                   '00000100    004  
        SHOUT SI,SCK,MSBFIRST,[COM_REG\8]
        SHOUT SI,SCK,MSBFIRST,[TEMP1\8]
        
        PRINT AT 1,1,"Salam"
        
    ON_HARDWARE_INTERRUPT GOTO INT_SUB
    
    MAIN:
    NOP
    GOTO MAIN
    
    
    INT_SUB:
    
    @ clrwdt
    
        CONTEXT SAVE
        INC TIMER
    
        IF TIMER = 5 THEN
            TOGGLE LED
            CLEAR TIMER
        ENDIF
        TMR1L = TIME_OFFSET.BYTE0
        TMR1H = TIME_OFFSET.BYTE1
        CLEAR PIR1.0
        CONTEXT RESTORE    
    END

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    mahmood
    Guest mahmood's Avatar

    0 Not allowed!

    Default Re: My own 18f452 dev. board

    Last edited by mahmood; 24th April 2016 at 16:55.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Prolific Poster pic-ignorant's Avatar
    Join Date
    Oct 2007
    Posts
    2,938
    Thumbs Up
    Received: 25
    Given: 31
    Total Downloaded
    926.61 MB

    0 Not allowed!

    Default Re: My own 18f452 dev. board

    Good job Mahmood!
    You could maybe sell some on eBay.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    mahmood
    Guest mahmood's Avatar

    0 Not allowed!

    Default Re: My own 18f452 dev. board

    hi dear Fanatical Contributor,
    thank you . of course you are right, i am an electrician engineer and this is hobby for me. i will be glad to rise up my friends. any way do you have a way to
    upload a file with about 2MB on this site ?
    we couldn't attach files more than 100KB here !

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,208
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Re: My own 18f452 dev. board

    Most compression apps RAR ZIP etc. will break the file into multiple files, any size you like and of course will reconstruct at the other end.
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. 18fxxJxx Dev board
      By Tim in forum The Lounge
      Replies: 9
      Last Post: 22nd July 2007, 14:50
    2. [SOLVED !] EasyPic3 Dev board.
      By dmTulsa in forum The Lounge
      Replies: 9
      Last Post: 9th July 2006, 15:53
    3. [SOLVED !] USB dev board
      By Richard in forum The Lounge
      Replies: 7
      Last Post: 1st October 2005, 18:20
    4. 18f452 With Dev Board
      By Dave Stowe in forum Proton Development Board
      Replies: 0
      Last Post: 17th April 2004, 19:13
    5. Will the Dev board work with a 18f452
      By Dave Stowe in forum Proton Development Board
      Replies: 1
      Last Post: 11th April 2004, 01:56

    Members who have read this thread : 38

    Actions :  (Set Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts