43 / 111 page

IP175C/IP175C LF/IP175CH/IP175CH LF
Data Sheet
43/111
Mar 09, 2007
Copyright © 2004, IC Plus Corp.
IP175C/IP175CH-DS-R14
A programming example of SMART MAC example
Register
Content
Description
Tag/ un-tag function setup
29.23[0]
0
MII0 doesn’t strip the tag of an outgoing packet.
29.23[1]
1
MII0 adds a tag to an outgoing packet.
29.23[10:6]
11111
Port0~4 strip the tag of an outgoing packet.
29.23[15:11]
00000
Port0~4 doesn’t add a tag to an outgoing packet.
PVID function setup
29.24~27
16’h0001
Define PVID of port0~port3
29.28
16’h0002
Define PVID of port4
29.30
16’h0002
Define PVID of MII0
VLAN Mask function setup
30.1[13:8]
6’h2f
TAG_VLAN_MASK_1
30.1[5:0]
6’h30
TAG_VLAN_MASK_2
SMART MAC function setup
30.9[2:0]
001
Define 1 LAN group
30.9[3]
1
Enable router function
30.9[6:4]
000
Define VID index as 000
30.9[7]
1
Enable tag VLAN
30.9[12:8]
10000
Define port 4 as a WAN port